我安装了readr
包并尝试在Rstudio中上传一个.csv
文件。但是当我尝试加载这个包时,出现了以下错误:
> library(readr)
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()),
versionCheck = vI[[j]]) : there is no package called ‘hms’ In addition:
Warning message: Paket ‘readr’ wurde unter R Version 3.2.5 erstellt
Error: Laden von Paket oder Namensraum für ‘readr’ fehlgeschlagen
当我在R中尝试上传.csv
文件时,我会收到以下错误提示:
> dataX<-read_csv("file.csv")
Error: could not find function "read_csv"
< p > sessionInfo()
的结果是:
> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252
[3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C
[5] LC_TIME=German_Germany.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] colorspace_1.3-2 scales_0.4.1 R6_2.2.2 lazyeval_0.2.0 plyr_1.8.4
[6] tools_3.2.2 gtable_0.2.0 tibble_1.3.0 Rcpp_0.12.10 ggplot2_2.2.1
[11] grid_3.2.2 munsell_0.4.3
我很感激你的帮助。谢谢。
read_csv
函数不在您的环境中。看起来包加载失败是因为缺少依赖项hms
,因此请尝试安装hms
是否可以解决问题。 - cmahersessioninfo()
吗? - Technophobe01sessionInfo()
的结果。 - user249018ERROR: dependency 'rlang' is not available for package 'hms' Warning in install.packages : installation of package ‘hms’ had non-zero exit status
。 - user249018