I installed the stringr package on my Ubuntu 10.04 machine under R 2.10.1. When I try to use the str_extract() function R stops and gives the following error message:
我在ubuntu10.04机器上安装了stringr包。当我尝试使用str_extract()函数R停止并给出以下错误消息:
Error in recyclable(string, pattern, replacement) : could not find function "vapply"
可回收错误(字符串、图案、替换):找不到函数“vapply”
How can I solve this problem? Is there any specific package that contains this vapply function?
我该如何解决这个问题?是否有包含这个vapply函数的特定包?
2 个解决方案
#1
3
vapply
is in the base package, so something may be wrong with your installation.
vapply在基本包中,所以您的安装可能有问题。
#2
1
I'm using Ubuntu and I think the problem is that it's using an older version of R in the repos. I uninstalled R from my machine, then I used this http://www.keittlab.org/node/158 to set up the repos for R. So far this works for me very well.
我在使用Ubuntu,我认为问题是它在repos中使用了一个旧版本的R。我从机器上卸载R,然后使用http://www.keittlab.org/node/158设置R的repos。
#1
3
vapply
is in the base package, so something may be wrong with your installation.
vapply在基本包中,所以您的安装可能有问题。
#2
1
I'm using Ubuntu and I think the problem is that it's using an older version of R in the repos. I uninstalled R from my machine, then I used this http://www.keittlab.org/node/158 to set up the repos for R. So far this works for me very well.
我在使用Ubuntu,我认为问题是它在repos中使用了一个旧版本的R。我从机器上卸载R,然后使用http://www.keittlab.org/node/158设置R的repos。