none
Library path for remote session RRS feed

  • Question

  • Hello,

    How do i add other paths to the libPaths of the remote sessions? as to make it permanent

    .libPaths() on the R server:

    [1] "/usr/local/lib/R/site-library"
    [2] "/usr/lib/R/site-library"
    [3] "/usr/lib/R/library"
    [4] "/usr/lib64/microsoft-r/3.3/lib64/R/library"

    .libPaths() when connected through remoteLogin to the R server:

    [1] "/opt/deployr/9.0.1/rserve/R" [2] "/usr/lib64/microsoft-r/3.3/lib64/R/library"

    Thank you.


    Friday, March 24, 2017 12:52 PM

Answers

  • There are 2 choices:

    1) Call .libPaths() with additional directories each time you establish a remote session

        REMOTE> library(packageName, lib.loc=getwd()) #No quotes around packageName

    2) Modify “C:\Program Files\Microsoft\R Server\R_SERVER\DeployR\Rserve\RScripts\source.R” with the additional directories. This requires a restart to the “Rserve9.0.0.0” windows service. The changes in “source.R” will be available to each remote session.

    Thanks

    Tuesday, March 28, 2017 2:42 PM
    Moderator

All replies

  • Hello,

    There may be an issue that we'll fix soon. Can you try the following:

    When loading a library for the REMOTE session, set the path to lib.loc=getwd() to see if it solves your issue. For example:

    REMOTE> library(Hmisc, lib.loc=getwd())  #No quotes around Hmsic

    Thanks,

    Josée



    Monday, March 27, 2017 4:33 PM
    Moderator
  • Thank you for your reply.

    The solution provided did not solve the issue.

    Tuesday, March 28, 2017 11:31 AM
  • There are 2 choices:

    1) Call .libPaths() with additional directories each time you establish a remote session

        REMOTE> library(packageName, lib.loc=getwd()) #No quotes around packageName

    2) Modify “C:\Program Files\Microsoft\R Server\R_SERVER\DeployR\Rserve\RScripts\source.R” with the additional directories. This requires a restart to the “Rserve9.0.0.0” windows service. The changes in “source.R” will be available to each remote session.

    Thanks

    Tuesday, March 28, 2017 2:42 PM
    Moderator
  • where is the source.R file located in the linux version?

    Moreover, is there a possibility of having the mrsdeploy package without using R open? for the moment there are too many conflicts with other packages to be usable. However, im very interested in the R server itself because of the remoteLogin function.

    Tuesday, March 28, 2017 2:53 PM
  • The mrsdeploy package comes with Microsoft R Server or R Client.   Those products run atop of Microsoft R Open. What are the conflicts?

    Also, for R Server 9.0.1 on Linux, I believe you can find source.R under: /usr/lib64/microsoft-deployr/9.0.1/rserve/RScripts

    If not, a quick search of your file system should help.

    Tuesday, March 28, 2017 4:24 PM
    Moderator
  • Sorry for the delayed answer.

    the mrsdeploy package run atop of microsoft R open but they are not supplied with R open, why is that? Since if I install the R client I can use the mrsdeploy in RStudio without having to launch R client.

    Moreover, the R client isnt available for linux, which is problematic for us since our lab has a mixture of linux and windows based machines.

    Will the R client be available for linux? If not, is there a plan to release the mrsdeploy package with R open?

    Thank you.

    Tuesday, April 4, 2017 7:11 AM
  • A linux install for R Client is expected very soon.
    Tuesday, April 4, 2017 12:45 PM
    Moderator
  • Great news!
    Tuesday, April 4, 2017 12:52 PM