If you still get the same error you likely have a library(pkg) call in your. When you encounter this error the first thing you should do is restart your R session and try to install again without loading any packages. But if that package is already loaded you’ll get the Updating loaded packages error. This is very convenient because not having to compile packages yourself has a huge advantage: it’s (much) faster. Pre-complied means that the package has been complied on another machine with the same OS as yours and subsequently uploaded to CRAN. When type = "binary", install.packages() will attempt to download a pre-compiled version of the requested package for the operating system (OS) you are working on. The former is the default on Windows and some macOS versions while on Linux it’s the latter. The install.packages() function has a type parameter that controls whether a package is installed from pre-complied binaries or from source. Any subsequent call to install.packages() will make use of this globally set option unless you overwrite it by passing another value to the repos parameter.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |