R Open不显示/更新最新版本的MRAN包

时间:2022-07-22 09:45:57

I want to update an R package using Microsoft R Open via Microsoft R Server. 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). Why is R not updating the package? RStudio points to C:\Program Files\Microsoft\ML Server\R_SERVER.

我想通过Microsoft R Server使用Microsoft R Open更新R包。我可以在MRAN包repo中看到包版本是1.2.0,但是当我在RStudio中尝试更新时,它说所有包都是最新的,尽管相应的包仍然是1.1.0版(在我的情况下是dbplyr)。为什么R没有更新包? 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有镜像全球(CDN) - RStudio,但我想这被MRAN推翻了?

R Open不显示/更新最新版本的MRAN包

1 个解决方案

#1


2  

So you are running Microsoft R Server, and that has an R version of 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. You can read more about snapshots and checkpoints here.

因此,您运行的是Microsoft R Server,其R版本为3.4.1。我相信当你尝试使用MRAN进行升级时,升级会考虑到你所使用的R版本 - 而且(我相信)最新版本的dbplyr for R 3.4.1是1.1.0。您可以在此处阅读有关快照和检查点的更多信息。

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

#1


2  

So you are running Microsoft R Server, and that has an R version of 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. You can read more about snapshots and checkpoints here.

因此,您运行的是Microsoft R Server,其R版本为3.4.1。我相信当你尝试使用MRAN进行升级时,升级会考虑到你所使用的R版本 - 而且(我相信)最新版本的dbplyr for R 3.4.1是1.1.0。您可以在此处阅读有关快照和检查点的更多信息。

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