How to create an archive package on R 3.0.0

R 3.0.0 has recently been released. One of the requirements was that "packages must be (reloaded) installed in this version (3.0.0) R."

The problem occurs when you have packages that have been archived. Regardless of the OS, how do you create packages like uroot ? As you can see, the package is archived.

+6
source share
1 answer

The easiest way to create a package from the archive is to use devtools:

library(devtools) install_url("http://cran.r-project.org/src/contrib/Archive/uroot/uroot_1.4.tar.gz") 

There are three problems:

  • You need to have a development environment. In windows, this means you need Rtools; on mac, xcode command line tools; and on linux corresponding development packages

  • There is currently a bug in devtools, which means that it cannot find the correct version of Rtools for windows. The fix is ​​on the way to CRAN.

  • As a rule, it’s a good reason that the package was archived: it probably will not pass the R CMD check in the current version of R, so even after you install it, work correctly. Be careful!

+9
source

All Articles