我有一个包(qdap)和一个附带的数据包(qdapDictionaries),它将被qdap中的某些函数使用,如第41行中的here所示第454行here中的syn.env。
我已经在R-help列表上询问了a related question,但是在列表中被告知它不适合列表,因为它使用来自roxygen2的私有符号,但是,我实际上可以从{{{}导出数据集。 1}}。我{。}}到描述数据集的.R文件,但这会在编译时导致错误。
qdapDictionaries
显然,我没有正确导出这些数据集。 如何从> set(qdapDictionaries)
Installing qdapDictionaries
"C:/R/R-3.0.1/bin/i386/R" --vanilla CMD INSTALL \
"C:\Users\trinker\GitHub\qdapDictionaries" --library="C:/R/R-3.0.1/library" \
--with-keep.source --install-tests
* installing *source* package 'qdapDictionaries' ...
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
Error in namespaceExport(ns, exports) :
undefined exports: abbreviations, action.verbs, adverb, amplification.words, BuckleySaltonSWL, contractions, deamplification.words, DICTIONARY, emoticon, env.pol, env.syl, env.syn, interjections, labMT, NAMES, NAMES_LIST, NAMES_SEX, negation.words, negative.words, OnixTxtRetToolkitSWL1, positive.words, preposition, SYNONYM, Top100Words, Top200Words, Top25Words
Error: loading failed
Execution halted
*** arch - x64
Error in namespaceExport(ns, exports) :
undefined exports: abbreviations, action.verbs, adverb, amplification.words, BuckleySaltonSWL, contractions, deamplification.words, DICTIONARY, emoticon, env.pol, env.syl, env.syn, interjections, labMT, NAMES, NAMES_LIST, NAMES_SEX, negation.words, negative.words, OnixTxtRetToolkitSWL1, positive.words, preposition, SYNONYM, Top100Words, Top200Words, Top25Words
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing 'C:/R/R-3.0.1/library/qdapDictionaries'
* restoring previous 'C:/R/R-3.0.1/library/qdapDictionaries'
Error: Command failed (1)
导出数据集,以便我可以在父qdapDictionaries
包中使用@importFrom
?
以下是数据集的其中一个文档:
qdap
请注意,我在说明文件的“取决于”部分中列出了#' Fry's 100 Most Commonly Used English Words
#'
#' A stopword list containing a character vector of stopwords.
#'
#' @details Fry's Word List: The first 25 make up about one-third of all printed
#' material in English. The first 100 make up about one-half of all printed
#' material in English. The first 300 make up about 65\% of all printed
#' material in English."
#'
#'
#' @docType data
#' @keywords datasets
#' @name Top100Words
#' @usage data(Top100Words)
#' @format A character vector with 100 elements
#' @export
#' @references Fry, E. B. (1997). Fry 1000 instant words. Lincolnwood, IL:
#' Contemporary Books.
NULL
但是使用R dev版本进行了CRAN检查显示我仍需要导入父级中使用的qdapDictionaries
数据集qdapDictionaries
包。