How to change and remove default library location?

后端 未结 2 530
攒了一身酷
攒了一身酷 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))

提交回复
热议问题