一位朋友发给我这个伟大的教程,用R对网络分析NYtimes.我真的很想尝试一下.但是,第一步是从源代码安装名为RJSONIO的软件包.
我知道R相当不错,但我不知道如何从源代码安装包.
我正在运行Mac OSX.
我希望使用这个devtools包.我运行以下命令:
> install.packages("devtools", dependencies = TRUE)
....
> library(devtools)
Error in library(devtools) : there is no package called ‘devtools’
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?
编辑:以下是重新install.packages启动会话后重新运行命令的结果.
> install.packages("devtools", dependencies = TRUE)
Installing package into ‘/home/evanaad/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Warning: dependencies ‘roxygen2’, ‘BiocInstaller’, ‘rstudio’ are not available
also installing the dependencies ‘httr’, ‘RCurl’
trying URL 'http://cran.at.r-project.org/src/contrib/httr_0.2.tar.gz'
Content type 'application/x-gzip' length 50183 bytes (49 Kb)
opened URL
==================================================
downloaded 49 …Run Code Online (Sandbox Code Playgroud)