[英]R Open does not show/update to latest version of MRAN package
I want to update an R package using Microsoft R Open via Microsoft R Server. 我想通过Microsoft R Server使用Microsoft R Open更新R包。 I can see in MRAN package repo that the package version is 1.2.0 but when I try an update in RStudio it says all packages up to date although respective package is still on version 1.1.0 (dbplyr in my case).
我可以在MRAN软件包回购中看到该软件包的版本是1.2.0,但是当我在RStudio中尝试更新时,它说所有软件包都是最新的,尽管相应的软件包仍是1.1.0版本(在我的情况下为dbplyr)。 Why is R not updating the package?
为什么R不更新软件包? RStudio points to
C:\\Program Files\\Microsoft\\ML Server\\R_SERVER
. RStudio指向
C:\\Program Files\\Microsoft\\ML Server\\R_SERVER
。
sessionInfo()
#>R version 3.4.1 (2017-06-30)
#>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 States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
#>[4] LC_NUMERIC=C LC_TIME=English_United States.1252
#>attached base packages:
#>[1] stats graphics grDevices utils datasets methods base
#>other attached packages:
#>[1] RevoUtilsMath_10.0.0 RevoUtils_10.0.5 RevoMods_11.0.0 MicrosoftML_1.5.0 mrsdeploy_1.1.2 RevoScaleR_9.2.1
#>[7] lattice_0.20-35 rpart_4.1-11
#>loaded via a namespace (and not attached):
#>[1] codetools_0.2-15 CompatibilityAPI_1.1.0 foreach_1.4.4 grid_3.4.1 R6_2.2.0
#>[6] jsonlite_1.4 curl_2.6 iterators_1.0.8 tools_3.4.1 yaml_2.1.14
#>[11] compiler_3.4.1 mrupdate_1.0.1
packageVersion("dbplyr")
#>‘1.1.0’
RStudio IDE has as mirror Global (CDN) - RStudio
but I guess this is overruled by MRAN? RStudio IDE具有
Global (CDN) - RStudio
镜像Global (CDN) - RStudio
但我想这被MRAN否决了吗?
So you are running Microsoft R Server, and that has an R version of 3.4.1. 因此,您正在运行Microsoft R Server,它的R版本为3.4.1。 I believe what happens is that when you try to upgrade using MRAN, the upgrade takes into consideration which version of R you're on - and (I believe again) the latest version of dbplyr for R 3.4.1 was 1.1.0.
我相信发生的事情是,当您尝试使用MRAN进行升级时,升级过程会考虑您所使用的R版本-并且(我再次相信)R 3.4.1的dbplyr的最新版本为1.1.0。 You can read more about snapshots and checkpoints here .
您可以在此处阅读有关快照和检查点的更多信息。
What you can do if you want is to install the package straight from the CRAN repo, using code something like so: 如果需要的话,可以使用如下代码直接从CRAN存储库中安装软件包:
install.packages("dbplyr", repos = "https://cloud.r-project.org/", dependencies=TRUE, lib = pkg.dir)
Hope this helps! 希望这可以帮助!
Niels 尼尔斯
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.