Giter Club home page Giter Club logo

Comments (8)

Lchiffon avatar Lchiffon commented on August 17, 2024

你确定是加载过recharts么?

library(recharts)

from recharts.

chaoshengt avatar chaoshengt commented on August 17, 2024

@Lchiffon 肯定加载了~~~,是不是我没安装Echarts的原因~~~,菜鸟求教~~~
> library(recharts)
Warning message:
程辑包‘recharts’是用R版本3.2.2 来建造的
> mapData <- data.frame(province=c("上海", "江苏", "广东", "黑龙江"), val1=c(100, 200, 300, 500), val2=c(200,300,400,200), val3=c(1,2,3,5), stringsAsFactors=F)
> eMap(mapData, namevar=~province, datavar = ~val1+val2)
Error: could not find function "eMap"

from recharts.

Lchiffon avatar Lchiffon commented on August 17, 2024

贴下安装recharts的代码和sessionInfo()的结果吧

from recharts.

chaoshengt avatar chaoshengt commented on August 17, 2024

使用教程中的安装方法提示不成功,我是把zip包下载下来,通过Tools工具安装的~~~
‘devtools::install_github('taiyun/recharts')
Downloading GitHub repo taiyun/recharts@master
from URL https://api.github.com/repos/taiyun/recharts/zipball/master
Installing recharts
"C:/PROGRA~1/R/bin/x64/R" --no-site-file
--no-environ --no-save --no-restore --quiet CMD
INSTALL
"C:/Users/tcs/AppData/Local/Temp/RtmpYhFkZu/devtools13c03a7e6c4e/taiyun-recharts-6a16a4c"
--library="C:/Users/tcs/Documents/R/win-library/3.2"
--install-tests

Error: Command failed (127)’

from recharts.

chaoshengt avatar chaoshengt commented on August 17, 2024

sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936

attached base packages:
[1] stats graphics grDevices utils
[5] datasets methods base

loaded via a namespace (and not attached):
[1] tools_3.2.0

from recharts.

chaoshengt avatar chaoshengt commented on August 17, 2024

这几个命令也无法运行成功 :
install_github('ramnathv/htmlwidgets')
install_github('rstudio/htmltools')
install_github('taiyun/recharts@htmlwidgets')

install_github('ramnathv/htmlwidgets')
Downloading GitHub repo ramnathv/htmlwidgets@master
from URL https://api.github.com/repos/ramnathv/htmlwidgets/zipball/master
Installing htmlwidgets
"C:/PROGRA~1/R/bin/x64/R" --no-site-file
--no-environ --no-save --no-restore --quiet CMD
INSTALL
"C:/Users/tcs/AppData/Local/Temp/Rtmps1lkPb/devtools1fb440263806/ramnathv-htmlwidgets-3ce9f90"
--library="C:/Users/tcs/Documents/R/win-library/3.2"
--install-tests

Error: Command failed (127)

from recharts.

Lchiffon avatar Lchiffon commented on August 17, 2024

试试把R升级到3.3.2再用devtools::install_github('taiyun/recharts')安装吧

这个安装目前没有太大的问题反而install_github('taiyun/recharts@htmlwidgets')是一个已经弃用很久的东东了

from recharts.

chaoshengt avatar chaoshengt commented on August 17, 2024

昨天电脑崩溃,重装,正好安装3.3.2版本的R, 问题解决~~

from recharts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.