r - ERROR: shinyjs: Error parsing the JavaScript code provided -
i trying run shiny dashboard through batch file in windows. here run.r
file looks like
require(shiny) require(shinyjs) folder_address = 'e://dash' runapp(folder_address, launch.browser=true)
here batch file
looks like
"c:\program files\r\r-3.3.1\bin\r.exe" -e "shiny::runapp('e:/dash', launch.browser=true)"
but,whenever run batch file opens browser , throws error
error: shinyjs: error parsing javascript code provided.
to run shiny app located in e:\dash
batch file in windows:
you can library folder running function in r:
.libpaths() "c:/users/me/documents/r/r-3.3.1/library"
your run.r should be:
require(shiny) folder_address = 'e:/dash' runapp(folder_address, launch.browser=true)
your run.bat should be:
"c:\program files\r\r-3.3.1\bin\rscript.exe" e:/dash/run.r r_libs="c:/users/me/documents/r/r-3.3.1/library"
Comments
Post a Comment