我有两个与github存储库关联的R项目。 我一直在使用repmis函数source_DropboxData下载文件,然后在dplyr中使用tbl_df
在两个项目中,代码为:
require(repmis)
require(plyr)
require(dplyr)
require(tidyr)
require(ggplot2)
# simd vars
simd_2009 <- source_DropboxData(
file="simd_2009.csv",
key="ghiu8n9db6rch9y"
) %>% tbl_df()
在其中一个项目中,这会导致RStudio崩溃;在另一方面却没有。
有效的项目的sessionInfo():
> sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
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] knitr_1.9 ggplot2_1.0.0 tidyr_0.2.0 dplyr_0.4.1 plyr_1.8.1 repmis_0.3.3
loaded via a namespace (and not attached):
[1] assertthat_0.1 colorspace_1.2-4 DBI_0.3.1 digest_0.6.8 evaluate_0.5.5 formatR_1.0 grid_3.1.2
[8] gtable_0.1.2 httr_0.6.1 magrittr_1.5 MASS_7.3-35 munsell_0.4.2 packrat_0.4.2-1 parallel_3.1.2
[15] proto_0.3-10 R.cache_0.10.0 R.methodsS3_1.6.1 R.oo_1.18.0 R.utils_1.34.0 Rcpp_0.11.3 reshape2_1.4.1
[22] rJava_0.9-6 scales_0.2.4 stringr_0.6.2 tools_3.1.2 xlsx_0.5.7 xlsxjars_0.6.1
会崩溃的项目的sessionInfo():
R version 3.1.2 (2014-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
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] ggplot2_1.0.0 tidyr_0.2.0 dplyr_0.4.1 plyr_1.8.1 repmis_0.4
loaded via a namespace (and not attached):
[1] assertthat_0.1 chron_2.3-45 colorspace_1.2-4 data.table_1.9.4 DBI_0.3.1 digest_0.6.4 grid_3.1.2
[8] gtable_0.1.2 httr_0.6.1 magrittr_1.5 MASS_7.3-35 munsell_0.4.2 packrat_0.4.2-1 parallel_3.1.2
[15] proto_0.3-10 R.cache_0.10.0 R.methodsS3_1.6.1 R.oo_1.18.0 R.utils_1.34.0 Rcpp_0.11.3 reshape2_1.4
[22] rJava_0.9-6 scales_0.2.4 stringr_0.6.2 tools_3.1.2 xlsx_0.5.7 xlsxjars_0.6.1
可能导致差异的原因是什么?我如何进一步调查?
显然,主要区别在于有效的版本使用repmis_0.3.3,而不使用repmis_0.4的版本。我将使用repmis来降级自己!
降级似乎不起作用 - &#34;安装具有非零退出状态&#34;
n.b。我也在两个项目上使用packrat
答案 0 :(得分:1)
在这种情况下,packrat
导致了此问题。删除它解决了这个问题!