This is the solution! Also, you must make sure your R_LIBS_USER is set 
correctly (in .Renviron) and verify that your packages are installed in the 
user library folder.

On Friday, February 10, 2017 at 10:30:35 PM UTC-8, Pine Fe wrote:
>
> For Windows users (maybe for Linux too):
>>
>
> You need to add the environment variable of R executables to the windows 
> %PATH%.
>
> 1. Open the windows File Explorer
> 2. Right click on "My computer" or "This computer"
> 3. Click on properties
> 4. Click on advanced system configuration (something like that).
> 5. A windows pops-up
> 6. Click on environment variables
> 7. Click (highlight) the PATH variable
> 8. Click Edit...
> 9. Then add the path to the folder where your Rcmd, R.exe and Rscript.exe 
> files are....
>
> My path is: C:\Program Files\R\R-3.3.2\bin\x64
>
> Because "Program Files" has a white space, the environment variable has to 
> be added with double quotes, like:
>
> "C:\Program Files\R\R-3.3.2\bin\x64" or else it won't work.
>
> Then NodeJS's r-script package will be able to call the R command from any 
> folder.
>
> You can check if the environment variable was added by opening your CMD 
> and entering "R" and then enter. If it says that the command is not 
> recognized, then the variable wasn't correctly added. If it was correctly 
> added, you will enter R console mode.
>
> Close all CMD's and execute again your NodeJS app.
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/947435f0-34da-4b30-872f-22d840d05c5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to