简体   繁体   English

MRAN R Server ggmap和ggplot2依赖版本2.2.0

[英]MRAN R Server ggmap and ggplot2 dependency version 2.2.0

I am using R Server in SQL Server, and I am trying to use the package ggmap and the register_google command. 我在SQL Server中使用R Server,并且尝试使用ggmap包和register_google命令。 However, the latest version of ggmap is not on CRAN yet. 但是,最新版本的ggmap尚未在CRAN上。 When I try to use devtools , it fails because ggplot2 2.2.0 is required. 当我尝试使用devtools ,它失败,因为需要ggplot2 2.2.0。 When I try to update ggplot2 , R Server just keeps installing 1.0.1 当我尝试更新ggplot2 ,R Server继续安装1.0.1

My Microsoft R Open version is 8.0.3 from 9-7-2016. 我的Microsoft R Open版本是2016年9月7日的8.0.3。 How do I go about getting hooked up to the latest MRAN and getting ggplot2 2.2.0? 如何连接最新的MRAN并获取ggplot2 2.2.0?

Just change the repo you download from: 只需更改您从以下位置下载的仓库即可:

# will redirect to your nearest CRAN mirror
install.packages("ggplot2", repos="https://cloud.r-project.org")

I believe your version numbers are R 3.3.1, and RevoScaleR 8.0.3. 我相信您的版本号是R 3.3.1和RevoScaleR 8.0.3。 Both are fairly old now. 两者都已经相当老了。 The latest is R 3.4.1 and RevoScaleR 9.1. 最新的是R 3.4.1和RevoScaleR 9.1。

Check out the documentation for more methods here: https://docs.microsoft.com/en-us/sql/advanced-analytics/r/install-additional-r-packages-on-sql-server?view=sql-server-2017 在此处查看文档以获取更多方法: https : //docs.microsoft.com/zh-cn/sql/advanced-analytics/r/install-additional-r-packages-on-sql-server?view=sql-server -2017

It seems that the solution was to update R altogether. 看来解决方案是完全更新R。

This link talks about the installr package: 此链接讨论installr程序包:

https://www.r-statistics.com/2015/06/a-step-by-step-screenshots-tutorial-for-upgrading-r-on-windows/ https://www.r-statistics.com/2015/06/a-step-by-step-screenshots-tutorial-for-upgrading-r-on-windows/

To access the Rgui.exe , it should be in your Program Files folder... 要访问Rgui.exe ,它应该在您的Program Files文件夹中。

R_Services -> bin -> x64 R_Services - > bin - > x64

Run the GUI as admin, then: 以admin身份运行GUI,然后:

install.packages("installr")
library(installr)

Now the console will have a new menu dropdown for installr 现在,控制台将有一个新的菜单下拉installr

EDIT: This did not quite work. 编辑:这不是很有效。 Still working on it. 仍在努力。

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

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