我试图在tidyverse包中使用R中的read_csv,但我总是收到这条消息:
> read_csv(readr_example("mtcars.csv"))
Error in date_names_lang(date_names) :
cannot open file '~/R/win-library/3.4/readr/R/sysdata.rdb': No such file or directory
文件和目录确实存在:
> list.files("~/R/win-library/3.4/readr/R/")
[1] "readr" "readr.rdb" "readr.rdx" "sysdata.rdb" "sysdata.rdx"
我是最新版本的R和tidyverse:
> sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252 LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] dplyr_0.7.0 purrr_0.2.2.2 readr_1.1.1 tidyr_0.6.3 tibble_1.3.3 ggplot2_2.2.1 tidyverse_1.1.1
loaded via a namespace (and not attached):
[1] Rcpp_0.12.11 compiler_3.4.0 cellranger_1.1.0 plyr_1.8.4 forcats_0.2.0 tools_3.4.0 jsonlite_1.5
[8] lubridate_1.6.0 gtable_0.2.0 nlme_3.1-131 lattice_0.20-35 rlang_0.1.1 psych_1.7.5 parallel_3.4.0
[15] haven_1.0.0 xml2_1.1.1 stringr_1.2.0 httr_1.2.1 hms_0.3 grid_3.4.0 glue_1.0.0
[22] R6_2.2.1 readxl_1.0.0 foreign_0.8-67 reshape2_1.4.2 modelr_0.1.0 magrittr_1.5 scales_0.4.1
[29] assertthat_0.2.0 mnormt_1.5-5 rvest_0.3.2 colorspace_1.3-2 stringi_1.1.5 lazyeval_0.2.0 munsell_0.4.3
[36] broom_0.4.2
你有什么建议吗?
答案 0 :(得分:1)
我遇到了同样的问题。我重新启动了R,重新安装了readr
并且它有效。这里有更多链接可能会有所启发:
答案 1 :(得分:0)
我在运行 TCGAbiolinks 时也遇到了这个问题。
除了 idecico 的建议之外,我发现在 tidyverse 等其他软件包之前通过 library(readr) 加载 readr,解决了该问题(基于 mrscholz 在以下 github 页面上的评论:https://github.com/tidyverse/tidyverse/issues/46)>