R 在找不到包名称时创建了包名称
每次我更新R 在找不到包名称时创建了包名称,r,data.table,rcpp,R,Data.table,Rcpp,每次我更新R都会发生一些事情。。。无论如何,这次(显然只针对数据表,其他packg,如ggplot2,以及所有由它导入的packg)我得到了以下信息: > library("data.table", lib.loc="C:/Program Files/R/R-3.0.2/library") data.table 1.8.10 For help type: help("data.table") > detach("package:data.table", unload=TRUE) W
R
都会发生一些事情。。。无论如何,这次(显然只针对数据表
,其他packg,如ggplot2
,以及所有由它导入的packg)我得到了以下信息:
> library("data.table", lib.loc="C:/Program Files/R/R-3.0.2/library")
data.table 1.8.10 For help type: help("data.table")
> detach("package:data.table", unload=TRUE)
Warning messages:
1: In FUN(X[[2L]], ...) :
Created a package name, ‘2013-10-04 18:33:03’, when none found
2: In FUN(X[[2L]], ...) :
Created a package name, ‘2013-10-04 18:33:03’, when none found
3: In FUN(X[[2L]], ...) :
Created a package name, ‘2013-10-04 18:33:03’, when none found
4: In FUN(X[[2L]], ...) :
Created a package name, ‘2013-10-04 18:33:03’, when none found
5: In FUN(X[[2L]], ...) :
Created a package name, ‘2013-10-04 18:33:03’, when none found
6: In FUN(X[[2L]], ...) :
Created a package name, ‘2013-10-04 18:33:03’, when none found
> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_3.0.2
卸载软件包并使用Rtools从源代码重新安装时,输出相同。他们只是警告
我知道,但我很好奇/有点担心这是否意味着以后会发生其他事情
编辑:带有Rcpp
以及(30条警告),与数据不同。表,Rpcc
不工作:
> evalCpp('2 * M_PI')
Error in sourceCpp(code = code, env = env, rebuild = rebuild, showOutput = showOutput, :
SET_VECTOR_ELT() can only be applied to a 'list', not a 'symbol'
例如,在data.table命名空间的parent.env上调用时,该警告由getPackageName()函数发送
以下是调用堆栈的相关部分:
# where 3: sapply(where, getPackageName)
# where 4: findClass(what, classWhere)
# where 5: .removeSuperclassBackRefs(cl, cldef, searchWhere)
# where 6: methods:::cacheMetaData(ns, FALSE, ns)
# where 7: unloadNamespace(pkgname)
。。。
#其中11:tryCatch(unloadNamespace(pkgname),error=function(e)warning(gettexf)(“%s命名空间无法卸载:\n”,
#sQuote(pkgname)),conditionMessage(e),call.=FALSE,domain=NA)
#其中12:detach(“包:data.table”,unload=TRUE)
例如,尝试:
getPackageName(parent.env(getNamespace('data.table')))
及
它已在R-devel中修复(我自己没有验证,但我相信J.Chambers会解决这个问题)。嗨,你是否尝试过退出R
,然后重新启动?不知道发生了什么,但我最近在安装data.table
时收到了相同的警告(但不是像你一样使用它,实际上不是在所有系统上)哦,等等,我在detach
上以及在linux和windows上用数据获取这些数据。表
1.8.10(windows)和1.8.9(linux)@Ricardosporta是的,我是。我在RStudio
上,它建议您在卸载和重新安装软件包时重新启动R
:-)不要在带有空格的路径中安装R。
findClass('data.frame', getNamespace('data.table'))