madlogos / recharts

An R Interface to Baidu ECharts2 Library
http://madlogos.github.io/recharts
Other
88 stars 64 forks source link

为什么安装了这个包,案例里的函数不能用啊? #22

Closed coreanachina closed 6 years ago

coreanachina commented 6 years ago

library("recharts", lib.loc="~/R/win-library/3.4") echartr(iris, Sepal.Length, Sepal.Width, series = Species) Error in echartr(iris, Sepal.Length, Sepal.Width, series = Species) : could not find function "echartr"

madlogos commented 6 years ago

你是怎么装这个包的?有很多包都叫recharts。

coreanachina commented 6 years ago

从“Code”那里下载的recharts-master.zip,然后在rstudio里点packages,install from 选择package Archive File安装。

madlogos commented 6 years ago

你从github下载的是源代码,没有经过R CMD build编译,根本不是package archive file。仔细阅读文档,先装devtools包,然后install_github('madlogos/recharts')

coreanachina commented 6 years ago

install_github('madlogos/recharts') Downloading GitHub repo madlogos/recharts@master from URL https://api.github.com/repos/madlogos/recharts/zipball/master Installing recharts "d:/PROGRA~1/R/R-34~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore \ --quiet CMD INSTALL \ "C:/Users/user/AppData/Local/Temp/RtmpAR4Bv1/devtools22fc5ce15eef/madlogos-recharts-39cc88c" \ --library="D:/Users/user/Documents/R/win-library/3.4" --install-tests