rtutor.app.skel.Rd
Generate a skeleton for a shinyapps.io app of a problem set
rtutor.app.skel( ps.name, app.name = ps.name, app.dir, rps.app = !is.null(rps.dir), pkg.name = NULL, rps.file = paste0(ps.name, ".rps"), rps.dir = NULL, overwrite = FALSE, github.user = "GITHUB_USERNAME", rtutor.fork = "skranz", libs = NULL, ps.show.opts = NULL, direct.execution = FALSE, shinyapps.account.info = list(name = "<SHINYAPPS_USERNAME>", token = "<TOKEN>", secret = "<SECRET>"), ... )
ps.name | Name of the problem set |
---|---|
app.name | Name of your app. Should have no white spaces or special characters |
app.dir | Your local directory to which you want to deploy your app files |
rps.app | logical. If `TRUE` create an app based on an .rps file. Otherwise create the app based on a problem set package that is hosted on Github. |
pkg.name | If you create the app from a package this is the name of your package. |
rps.file | The name of your rps file without directory if you create the app from a .rps file |
rps.dir | the folder of your rps.file |
github.user | If you create the app from a package this is the name of your Github user name. |
rtutor.fork | Note that shinyapps.io only works with R packages directly installed from Github or CRAN. It is therefore not possible to locally change RTutor and use the adapted version for your own problemsets. This option however allows you to refer to your fork on github. Default is the main package under skranz. |
ps.show.opts | ps.show() arguments which are added to the generated ps.show. Has to be given as a named list, e.g. `ps.show.opts=list(show.solution.btn=FALSE)` if one wants to create an app which does not show the solution button. By default only the necessary options are set. If those are provided, they are overwritten. This way, one can for example set the user.name to something different than Guest. |
direct.execution | If TRUE the generated file deployapp.R is directly executably in the sense that the safety checks within the file are off (i.e. the saving `if` clauses are set to TRUE). Use with care! Default is `FALSE`. |
shinyapps.account.info | Expects a List with the account info according to http://shiny.rstudio.com/articles/shinyapps.html . Default is list(name='<SHINYAPPS_USERNAME>', token='<TOKEN>',secret='<SECRET>'), i.e. the example from that site. |