繁体   English   中英

使用repmis :: dropboxData的代码块可在一个Rstudio项目中工作,而在另一个项目中则不行

[英]Code chunk using repmis::dropboxData works in one Rstudio project but not another

我有两个与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降级自身!

降级似乎不起作用-“安装的退出状态为非零”

nb我也在两个项目上都使用packrat

  • 我现在已经在任一软件包之外尝试了repmis 0.4,它可以工作。 但是没有安装plyr和dplyr。
  • 它可以与安装的plyr一起使用...

在这种情况下, packrat导致了问题。 删除它解决了问题!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM