0
我有以下的R程序包:如何在本地安裝R包使用devtools :: install_local
[email protected]:~/storage1/homebrew_rpackages/mypackr$ pwd
/home/ubuntu/storage1/homebrew_rpackages/mypackr
結構爲:
[email protected]:~/storage1/homebrew_rpackages/mypackr$ tree
.
|-- DESCRIPTION
|-- NAMESPACE
|-- R
| |-- hello.R
| `-- tsne_pca.R
|-- mypackr.Rproj
`-- man
|-- hello.Rd
`-- plot_tsne_pca.Rd
我試圖做的是這樣本地安裝,但出現錯誤:
> 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
什麼是正確的做法?
@chade_我改變了文字。也許你現在可以看到它是一個答案。 – JerryWho