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:

  1. you can library folder running function in r:

    .libpaths() "c:/users/me/documents/r/r-3.3.1/library" 
  2. your run.r should be:

    require(shiny) folder_address = 'e:/dash' runapp(folder_address, launch.browser=true) 
  3. 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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -