1
我在創建R程序包時遇到問題roxygen2。這裏是我的代碼:使用_roxygen2創建R程序包時出現問題_
require(devtools)
require(roxygen2)
setwd("C://Users//[email protected]//Documents//sp th//R stuff")
create("myfunctions")
在這一點上,我用Windows文件瀏覽器將文件添加到.R文件夾「R」文件夾「myfunctions」內。
setwd("C:/Users/[email protected]/Documents/sp th/R stuff//myfunctions")
document()
setwd("C:/Users/[email protected]/Documents/sp th/R stuff")
install("myfunctions")
似乎一切都正常工作,但:
?vectorize #one of the .R files I added
在指定的包和庫 '矢量化' 沒有文件: 你可以試試 '??矢量化'
這個例子是不可重複的,不給太多,以幫助診斷。這是關閉一個問題的理由,但不會因爲你是一個新的海報。請閱讀問題指南並進行更改以使此問題適合。 http://stackoverflow.com/help/how-to-ask – 2014-10-17 01:34:59