Installing a package offline from GitHub

前端 未结 5 1928
[愿得一人]
[愿得一人] 2020-12-14 18:06

I\'m trying to port some packages to an R installation on an offline (Windows) computer.

From CRAN (let\'s say data.table), the process: 1) download .zip

5条回答
  •  眼角桃花
    2020-12-14 19:01

    Let's assume that you have Rtools and devtools on the win machine.

    Step 1: Download the source zip.

    Step 2: Copy to the win machine and unzip the content there.

    Step 3: Run the following code (adjust the path as necessary):

    library(devtools)
    source <- devtools:::source_pkg("E:/temp/data.table-master")
    install(source)
    
    library(data.table)
    #loads 1.9.7
    

提交回复
热议问题