How to change and remove default library location?

后端 未结 2 505
攒了一身酷
攒了一身酷 2020-12-14 04:34

I am running R on a networked computer where I don\'t have write access to most locations on the C drive. However, my IT department decided to load the entire CRAN repositor

相关标签:
2条回答
  • 2020-12-14 05:08

    If you want to change your library location permanently use this command: .libPaths("drive:/location/location")

    If you want to change your library location for the particular session in RStudio (i.e. for a temporary change), use: assign(".lib.loc", "drive:/location/location", envir = environment(.libPaths))

    0 讨论(0)
  • 2020-12-14 05:18

    Here be dragons.

    assign(".lib.loc", "\your\preferred\library", envir = environment(.libPaths))
    
    0 讨论(0)
提交回复
热议问题