Skip to content

Commit

Permalink
always include a dependency on the shiny package
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Oct 21, 2013
1 parent 2c1b64a commit 46a8c85
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/dependencies.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ appDependencies <- function(appDir = getwd()) {
# detect all package dependencies for a directory of files
dirDependencies <- function(dir) {

# first get the packages referred to in source code
pkgs <- character()
# start with the shiny package (the dependency on shiny can be implicit
# as the shiny package is automatically loaded prior to sourcing ui.R
# and server.R)
pkgs <- c("shiny")

# now get the packages referred to in the source code
sapply(list.files(dir, pattern=glob2rx("*.R"),
ignore.case=TRUE, recursive=TRUE),
function(file) {
Expand Down

0 comments on commit 46a8c85

Please sign in to comment.