cran

How to select a CRAN mirror in R

瘦欲@ 提交于 2019-11-26 08:43:19
问题 I\'m trying to install a package through the R prompt by doing the following: install.packages(\'RMySQL\') But the output is as follows: --- Please select a CRAN mirror for use in this session --- And nothing else! I can\'t find a solution to this very basic problem. What am I supposed to type in order to select a CRAN mirror? EDIT: OS: Mac-OS X 10.6.8 R Version: 2.15.0 回答1: You should either get a window with a list of repositories or a text menu with some options. But if that is not

Offline install of R package and dependencies

不羁的心 提交于 2019-11-26 03:28:06
问题 Suppose I need to install a number of packages on a (Linux) machine that does not have an internet connection. Let\'s say that I downloaded a copy of cran and burned it on a DVD that I bring to the offline location: wget ftp://cran.r-project.org/pub/R/src/contrib/*.tar.gz I can even add a PACKAGES file that contains an overview of all the source packages and their dependencies: library(tools) write_PACKAGES() How could I use this offline to install a source package in such a way that