[英]How to install r package locally using devtools::install_local
I have the following R packages: 我有以下R软件包:
ubuntu@ip-111-31-16-140:~/storage1/homebrew_rpackages/mypackr$ pwd
/home/ubuntu/storage1/homebrew_rpackages/mypackr
The structure is: 结构为:
ubuntu@ip-172-31-16-140:~/storage1/homebrew_rpackages/mypackr$ tree
.
|-- DESCRIPTION
|-- NAMESPACE
|-- R
| |-- hello.R
| `-- tsne_pca.R
|-- mypackr.Rproj
`-- man
|-- hello.Rd
`-- plot_tsne_pca.Rd
What I tried to do is to install locally this way, but gives error: 我试图做的就是以这种方式在本地安装,但出现错误:
> devtools::install_local("/home/ubuntu/storage1/homebrew_rpackages/mypackr")
Installation failed: trying to get slot "name" from an object of a basic class ("NULL") with no slots
What's the right way to do it? 什么是正确的方法?
您必须在包的git存储库中至少执行一次提交。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.