I'm reasonably new to R, and to *, so apologies if I have not provided sufficient detail in my question below. Happy to provide more info if required
我是R的新手,以及*,如果我在下面的问题中没有提供足够的细节,那么道歉。如果需要,很高兴提供更多信息
I run Windows 7 Professional (64 bit) and have R version 3.0.2 installed.
我运行Windows 7 Professional(64位)并安装了R 3.0.2。
When I try to install devtools, I obtain
当我尝试安装devtools时,我获得了
library(devtools)
Warning message:
package ‘devtools’ was built under R version 3.0.3 build_github_devtools()
包'devtools'是在R版本3.0.3 build_github_devtools()下构建的
"C:/PROGRA~1/R/R-30~1.2/bin/x64/R" --vanilla CMD SHLIB foo.c
“C:/PROGRA~1/R/R-30~1.2/bin/x64/R”--vanilla CMD SHLIB foo.c
gcc -m64 -I"C:/PROGRA~1/R/R-30~1.2/include" -DNDEBUG
-I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -std=gnu99 -mtune=core2 -c foo.c -o foo.o gcc -m64 -shared -s -static-libgcc -o foo.dll tmp.def foo.o -Ld:/RCompile/CRANpkg/extralibs64/local/lib/x64 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA~1/R/R-30~1.2/bin/x64 -lR Downloading devtools from https://github.com/hadley/devtools/archive/master.zip "C:/PROGRA~1/R/R-30~1.2/bin/x64/R" --vanilla CMD INSTALL "C:\Users\AppData\Local\Temp\Rtmp8yGaPd\devtools-master" --buildgcc -m64 -I“C:/PROGRA~1/R/R-30~1.2/include”-DNDEBUG -I“d:/ RCompile / CRANpkg / extralibs64 / local / include”-O2 -Wall -std = gnu99 - mtune = core2 -c foo.c -o foo.o gcc -m64 -shared -s -static-libgcc -o foo.dll tmp.def foo.o -Ld:/ RCompile / CRANpkg / extralibs64 / local / lib / x64 -Ld:/ RCompile / CRANpkg / extralibs64 / local / lib -LC:/PROGRA~1/R/R-30~1.2/bin/x64 -lR从https://github.com/hadley/devtools/archive下载devtools /master.zip“C:/PROGRA~1/R/R-30~1.2/bin/x64/R”--vanilla CMD INSTALL“C:\ Users \ AppData \ Local \ Temp \ Rtmp8yGaPd \ devtools-master” - -建立
- installing to library 'C:/Users/AppData/Local/Temp/Rtmp8yGaPd/file1afc11f24d1b'
安装到库'C:/ Users / AppData / Local / Temp / Rtmp8yGaPd / file1afc11f24d1b'
ERROR: dependencies 'rversions', 'git2r' are not available for package 'devtools'
错误:依赖项'rversions','git2r'不适用于'devtools'软件包
- removing 'C:/Users/AppData/Local/Temp/Rtmp8yGaPd/file1afc11f24d1b/devtools'
Error: Command failed (1)
错误:命令失败(1)
I've searched for help on dependencies rversions and git2r but no luck so far.
我已经搜索了依赖rversions和git2r的帮助,但到目前为止没有运气。
Can anybody help please?
有人可以帮忙吗?
1 个解决方案
#1
This is information about git2r
这是关于git2r的信息
The following devtools installation information comes from devtools:
以下devtools安装信息来自devtools:
Make sure you have a working development environment.
确保您有一个可用的开发环境。
-
Windows: Install Rtools.
Windows:安装Rtools。
-
Install the release version of devtools from CRAN with
install.packages("devtools")
.使用install.packages(“devtools”)从CRAN安装devtools的发行版。
Windows:
library(devtools) build_github_devtools()
Restart R before continuinginstall.packages("devtools.zip", repos = NULL, type = "source")
install.packages(“devtools.zip”,repos = NULL,type =“source”)
Remove the package after installationunlink("devtools.zip")
#1
This is information about git2r
这是关于git2r的信息
The following devtools installation information comes from devtools:
以下devtools安装信息来自devtools:
Make sure you have a working development environment.
确保您有一个可用的开发环境。
-
Windows: Install Rtools.
Windows:安装Rtools。
-
Install the release version of devtools from CRAN with
install.packages("devtools")
.使用install.packages(“devtools”)从CRAN安装devtools的发行版。
Windows:
library(devtools) build_github_devtools()
Restart R before continuinginstall.packages("devtools.zip", repos = NULL, type = "source")
install.packages(“devtools.zip”,repos = NULL,type =“source”)
Remove the package after installationunlink("devtools.zip")