R studio 中的 Googlepredictionapi 包
Googlepredictionapi package in R studio
当我尝试在 R 中安装 googlepredictionapi_0.1.tar.gz 包时,它说:
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
* installing *source* package 'googlepredictionapi' ...
ERROR: a 'NAMESPACE' file is required
* removing 'C:/Users/xxx/Documents/R/win-library/3.1/googlepredictionapi'
* restoring previous 'C:/Users/xxx/Documents/R/win-library/3.1/googlepredictionapi'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-31~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\xxx\Documents\R\win-library.1" "F:/R_working_Directory/googlepredictionapi_0.1.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘F:/R_working_Directory/googlepredictionapi_0.1.tar.gz’ had non-zero exit status
Warning messages:
1: package ‘arules’ was built under R version 3.1.3
2: package ‘clValid’ was built under R version 3.1.3
3: package ‘ROCR’ was built under R version 3.1.3
4: package ‘gplots’ was built under R version 3.1.3
我使用了 google 网站上给出的以下代码:
install.packages("googlepredictionapi_0.1.tar.gz", repos=NULL, type="source")
即使我转到工具 --> 安装包 --> 浏览--> select 包,它也会抛出同样的错误。
我使用的是最新的 R-studio 版本
有什么解决方法吗?
我刚刚使用存档中的文件创建了一个 github 存储库:https://github.com/byapparov/googlepredictionapi
可以使用devtools安装:
devtools:install_github("byapparov/googlepredictionapi")
但是包本身似乎已经过时,因此在当前状态下可能不是很有用。
当我尝试在 R 中安装 googlepredictionapi_0.1.tar.gz 包时,它说:
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
* installing *source* package 'googlepredictionapi' ...
ERROR: a 'NAMESPACE' file is required
* removing 'C:/Users/xxx/Documents/R/win-library/3.1/googlepredictionapi'
* restoring previous 'C:/Users/xxx/Documents/R/win-library/3.1/googlepredictionapi'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-31~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\xxx\Documents\R\win-library.1" "F:/R_working_Directory/googlepredictionapi_0.1.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘F:/R_working_Directory/googlepredictionapi_0.1.tar.gz’ had non-zero exit status
Warning messages:
1: package ‘arules’ was built under R version 3.1.3
2: package ‘clValid’ was built under R version 3.1.3
3: package ‘ROCR’ was built under R version 3.1.3
4: package ‘gplots’ was built under R version 3.1.3
我使用了 google 网站上给出的以下代码:
install.packages("googlepredictionapi_0.1.tar.gz", repos=NULL, type="source")
即使我转到工具 --> 安装包 --> 浏览--> select 包,它也会抛出同样的错误。
我使用的是最新的 R-studio 版本
有什么解决方法吗?
我刚刚使用存档中的文件创建了一个 github 存储库:https://github.com/byapparov/googlepredictionapi
可以使用devtools安装:
devtools:install_github("byapparov/googlepredictionapi")
但是包本身似乎已经过时,因此在当前状态下可能不是很有用。