Skip to content

Commit

Permalink
[feat] wireframe for the app.. #11
Browse files Browse the repository at this point in the history
  • Loading branch information
Edouard-Legoupil committed Apr 24, 2023
1 parent 20f3b3f commit 36ad85c
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ $run_dev.*
^\.github$
^surveyDesigner\.Rproj$
^docs$
^app\.R$
^rsconnect$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ vignettes/*.pdf
surveyDesigner.Rproj
!.github/*/*
inst/doc
rsconnect
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: surveyDesigner
Title: An Amazing Shiny App
Version: 0.0.0.9000
Authors@R: c(
person("Edouard", "Legoupil", , "edouard.legoupil@gmail.com", role = c("aut", "cre")),
person("Edouard", "Legoupil", , "legoupil@unhcr.org", role = c("aut", "cre")),
person("Cervan", "Girard", , "[email protected]", role = "aut")
)
Description: What the package does (one paragraph).
Expand Down
3 changes: 3 additions & 0 deletions R/_disable_autoload.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Disabling shiny autoload

# See ?shiny::loadSupport for more information
4 changes: 2 additions & 2 deletions R/app_ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app_ui <- function(request) {
golem_add_external_resources(),
# Your application UI logic
fluidPage(
h1("surveyDesignergolem")
h1("Survey Designer")
)
)
}
Expand All @@ -33,7 +33,7 @@ golem_add_external_resources <- function() {
favicon(),
bundle_resources(
path = app_sys("app/www"),
app_title = "surveyDesignergolem"
app_title = "surveyDesigner"
)
# Add here other external resources
# for example, you can add shinyalert::useShinyalert()
Expand Down
7 changes: 7 additions & 0 deletions app.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Launch the ShinyApp (Do not remove this comment)
# To deploy, run: rsconnect::deployApp()
# Or use the blue button on top of this file

pkgload::load_all(export_all = FALSE,helpers = FALSE,attach_testthat = FALSE)
options( "golem.app.prod" = TRUE)
surveyDesigner::run_app() # add parameters here (if any)
3 changes: 3 additions & 0 deletions dev/03_deploy.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ rsconnect::deployApp(
lint = FALSE,
forceUpdate = TRUE
)

library(golem)
add_rstudioconnect_file(pkg = get_golem_wd(), open = TRUE)

0 comments on commit 36ad85c

Please sign in to comment.