PredictiveEcology / SpaDES.addins

Tools and RStudio addins for 'SpaDES' and 'SpaDES' module development
http://spades-addins.predictiveecology.org
GNU General Public License v3.0
1 stars 1 forks source link

addin_newModule threw an error #1

Open Kenkleinman opened 2 years ago

Kenkleinman commented 2 years ago

Called from the addins drop-down menu, as type child:

SpaDES.addins:::addin_newModule() Loading required package: shiny

Listening on http://127.0.0.1:7378 Warning: Error in file: invalid 'description' argument 3: shiny::runApp 2: runGadget 1: SpaDES.addins:::addin_newModule

achubaty commented 2 years ago

thanks for reporting this. i also see this error. will take a look.

in the mean time, you can use the equivalent commands from SpaDES.core:

> suppressPackageStartupMessages({
+     library(SpaDES.core)
+ })
> newModule(name = "test123", path = tempdir(), type = "child")
New module, 'test123', made in /tmp/RtmpdAFtaW
Using RStudio; may need to open manually e.g., with file.edit or file.show
file.edit('/tmp/RtmpdAFtaW/test123/test123.R')
Using RStudio; may need to open manually e.g., with file.edit or file.show
file.edit('/tmp/RtmpdAFtaW/test123/test123.Rmd')