Loading an R Package from a Custom directory

后端 未结 5 2064
温柔的废话
温柔的废话 2020-12-25 12:57

If I download an \"package-name\".tar.gz file from CRAN website, gunzip and untar it into a custom directory, how do I load that package from within R? I cannot extract the

5条回答
  •  自闭症患者
    2020-12-25 13:34

    you dont need to unzip or untar
    just give this command in command prompt and it will unzip into appropriate place

    R CMD INSTALL [options] [l-lib] pkgs.tar.gz

    as explained here

    then you can use it in R by library(the_pkg)

提交回复
热议问题