Skip to content

Commit

Permalink
Changed files organizations
Browse files Browse the repository at this point in the history
Searched best practices compliance
  • Loading branch information
earnaud committed Feb 13, 2020
1 parent f662f63 commit 1e234a7
Show file tree
Hide file tree
Showing 119 changed files with 8 additions and 1,246 deletions.
Binary file removed .RData
Binary file not shown.
512 changes: 0 additions & 512 deletions .Rhistory

This file was deleted.

10 changes: 8 additions & 2 deletions R/main-runMetashark.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
#' @usage
#' runMetaShark(...)
#'
#' @param server
#' Logical. Is the app deployed in server or not?
#' If FALSE (default), the app is deployed for a local desktop usage.
#' If TRUE, the app is deployed for a distant server usage. The main difference between
#' both is the way filesystems will be used.
#'
#' @param ... options to pass to the application, ignored if missing or mistyped.
#' \describe{
#' \item{dev}{logical. Add development elements in the GUI.}
Expand All @@ -24,15 +30,15 @@
#' @export
#' @importFrom shiny shinyApp runApp
#' @importFrom golem with_golem_options
runMetashark <- function(...) {
runMetashark <- function(server = FALSE, ...) {

app = with_golem_options(
shinyApp(
ui = .app_ui,
server = .app_server,
onStart = .headerScript
),
golem_opts = list(...)
golem_opts = c(server, as.list(...))
)

runApp(
Expand Down
Loading

0 comments on commit 1e234a7

Please sign in to comment.