fslaborg / RProvider

Access R packages from F#
http://fslab.org/RProvider/
Other
235 stars 69 forks source link

Be aware of installation problems in the documentation and with R path #264

Open Philippe-Laval opened 11 months ago

Philippe-Laval commented 11 months ago

// Please note: R 4.0.0 must be installed in "C:\Program Files\R\R4" (and not in the "C:\Program Files\R\R4.0.0" folder). // The R_HOME environment variable must be "C:\Program Files\R4" and not "C:\Program Files\R4\bin".

// in fsi, when typing "RProvider." we get an error displayed : // - If installing in 4.0.0: // open RProvider.Error: No R engine at C:\Program Files\R\R-4 // - If R_HOME is "C:\Program Files\R\R4\bin" // open RProvider.Error: No R engine at C:\Program Files\R\R4\bin\bin\x64

nhirschey commented 11 months ago

Maybe try R 4.0.2.

See https://github.com/fslaborg/RProvider/issues/224

You may be seeing new problems, but RProvider relies on RDotNet and there have been issues getting it to work properly since 4.0.2.

last I checked winter 2022-2023 I could run it but there were encoding errors and problems loading stats.dll, so in practice not really usable with newer versions of R on windows.

Philippe-Laval commented 11 months ago

I tried also R 4.0.2. The problem comes from the path to R sofware. The default installation path are : C:\Program Files\R\R-4.0.0 or C:\Program Files\R\R-4.0.2. This will includes some '.'. I expect RProvider can not get it correctly. So I installed in C:\Program Files\R\R4. The message when typing open RProvider.zoo will give you No R engine at C:\Program Files\R\R-4

Also your documentation indicates to include "bin in R_HOME which is false.