Closed mgei closed 4 years ago
Same here. It doesn't work:
library(argonDash)
argonDashGallery()
#Error in system.file(paste0("examples/app.R"), package = "argonDash", :
no file found
Hey @mgei I've managed to make ir work by changing the function that calls the app.R
.
argonDashGallery <- function() {
if (!requireNamespace(package = "magrittr"))
message("Package 'magrittr' is required to run this function")
shiny::shinyAppFile(file.path(.libPaths(), 'argonDash/examples/gallery/app.R'))
}
argonDashGallery()
@DivadNojnarg if you allow me I can make a new Pull Request.
argonDashGallery <- function() { # nocov start
if (!requireNamespace(package = "magrittr"))
message("Package 'magrittr' is required to run this function")
shiny::shinyAppFile(
system.file(
paste0("examples/gallery/app.R"),
package = 'argonDash',
mustWork = TRUE
)
)
}
argonDashGallery()
it work for me
@oujbih wich OS are you using with? Mac OS I'm using. system.file
takes me to base
package directory.
@patarol windows 10
I cannot load argonDashGallery()
I also tried it on my Windows machine and run into the same problem.