microsoft / RTVS

R Tools for Visual Studio.
MIT License
388 stars 118 forks source link

How to make RTVS to run R Client ? #4344

Closed FCHLuk closed 5 years ago

FCHLuk commented 5 years ago

Hi . I have Visual Studio 2017. I installed RTVS. I installed R Client in the default directory. But when I ran library(RevoScaleR) I got an error message.

library(RevoScaleR) Error in base::library(...) : there is no package called ‘RevoScaleR’

In the R Tools options dialog, there is no way to make R Engine point to R Client. Please see attached screenshot.

Then cannot run r client in rtvs I uninstalled R Client. Then inside Visual Studio, under R Tools, I clicked on "Install Microsoft R Client:". Closed Visual Studio. Let R client installation finish. Restarted Visual Studio. Tried to run library(RevoScaleR) again. Got the same error message !! Nothing was changed ? How can I make RTVS use R Client ?

Thanks s million, Fred

Thanks in advance, Fred Luk

MikhailArkhipov commented 5 years ago

Try R Tools | Workspaces, the window should show all Rs available.

FCHLuk commented 5 years ago

That works. Thanks Mikhail. It looks like someone needs to update the documentation at Microsoft.

MikhailArkhipov commented 5 years ago

It is sort of there, just at the end https://docs.microsoft.com/en-us/visualstudio/rtvs/r-workspaces-in-visual-studio?view=vs-2017

in https://docs.microsoft.com/en-us/visualstudio/rtvs/getting-started-with-r?view=vs-2017