4
UPDATE
我已經完成了包的,它是在https://github.com/iembry-USGS/ie2misc在線託管。
由於原帖中的錯誤信息沒有幫助,我試圖對包進行roxygen化,看看它是否有效。以下是命令和錯誤消息。
library(roxygen2)
roxygenize(".", roclets = "rd")
# First time using roxygen2. Upgrading automatically...
# Error in parse(n = -1, file = file, srcfile = NULL,
# keep.source = FALSE) :
# 1:1: unexpected input
# 1: �
^
我假設意想不到的輸入指的是一個角色,但我不知道哪個文件有問題的字符。
任何幫助將有所幫助。
謝謝。
更新的最終
我上創建一個包含3個功能包工作。我已經成功地使用1個函數創建了3個其他包,但不包含這個包。
我已經在下面包含了DESCRIPTION文件的內容。該內容下方是我試圖記錄此軟件包時收到的代碼和錯誤。
謝謝。
Package: ie2misc
Title: Irucka Embry's Miscellaneous functions created while he was a
CNTS USGS Contractor.
Version: 1.0.0
[email protected]: person("Irucka", "Embry", , "", c("aut", "cre"))
Depends: R (>= 3.0.0), tcltk, data.table (>= 1.9.4)
Imports: openxlsx, gWidgets2, gWidgets2tcltk, stringi, qdap
Suggests: Rcpp (>= 0.11.5)
Maintainer: Irucka Embry <iembry[email protected]>
Description: Irucka Embry's Miscellaneous functions (processing exp files,
psf files, etc.) created while he was a Cherokee Nation Technology Solutions
(CNTS) USGS Contractor.
URL: https://gitlab.com/iembry/ie2misc
BugReports: https://gitlab.com/iembry/ie2misc/issues
License: CC0
Collate:
'ie2misc.R'
'psfFileChangeBATCH.R'
'psfFileChange.R'
'expFileOutput.R'
LazyData: true
Encoding: UTF-8
然後我運行:
setwd("ie2misc"); library(devtools); document();
Updating documentation
Loading
Error in if (pkg$package == "devtools") { : argument is of length zero
我遇到過類似的問題。 **重做**一切都解決了問題。 :) –