R给出"没有这样的文件或目录"错误

时间:2016-11-16 00:12:41

标签: r working-directory

我正在使用R版本3.3.2和RStudio版本1.0.44中的WDIchoropelthr包。

当我输入此示例命令时,choroplethr_wdi命令将返回错误。

> choroplethr_wdi(code="NY.GDP.PCAP.CD", year=2012, title="2012 Per Capita Income")

我收到此错误消息。

Error in match(x, table, nomatch = 0L) : cannot open file '~/R/win-library/3.3/WDI/data/Rdata.rdb': No such file or directory

我已经检查了getwd(),而且文件目录是R目录所在的位置。

> getwd() [1] "C:/Users/306/Documents"

我还编辑了R目录的权限,以确保权限不是障碍。

如果我正确设置了工作目录和权限,还有什么会导致此错误?

其他软件包/命令正常工作,只是choroplethr_wdi提供了错误。

0 个答案:

没有答案
相关问题