初识R

来源:互联网 发布:java hashcode方法 编辑:程序博客网 时间:2024/06/08 02:05

install.packages("XML")


Q()

help(solve)

?solve

help.start()  


install.packages('RCurl')

  • error

checking for curl-config... no
Cannot find curl-config
ERROR: configuration failed for package ‘RCurl’
* removing ‘/usr/local/lib/R/site-library/RCurl’


The downloaded source packages are in
‘/tmp/RtmpZ0yrgf/downloaded_packages’
Warning message:
In install.packages("RCurl") :
  installation of package ‘RCurl’ had non-zero exit status

  • do 
    apt-get install libcurl4-openssl-dev
  • OK

installing to /usr/local/lib/R/site-library/RCurl/libs
** R
** data
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded


* DONE (RCurl)


The downloaded source packages are in
‘/tmp/RtmpZ0yrgf/downloaded_packages’