How do I install an older R package? [duplicate]

2019-07-04 06:22发布

This question already has an answer here:

I am trying to install the R package bigrf using the following command:

install.packages('bigrf')

However, I receive this error:

Warning in install.packages: package 'bigrf' is not available (for R version 3.0.2).

I understand that the package was not built for R version 3.0.2, but is it not possible for me to install it regardless with the understanding that it might not have complete forward compatibility?

1条回答
叛逆
2楼-- · 2019-07-04 06:46

The safest thing to do would be to download the last version that the package was built for (link) and run the code on that version.

The easiest way to rebuild a package from source is using R-Studio.

They have a good walkthrough. You will need to use the devtools package as well.

查看更多
登录 后发表回答