r - Exporting a Data Set (package development) -
i have package (qdap) , accompanying data package (qdapdictionaries) used of functions in qdap seen here in line 41 use syn.env line 454 here.
i have asked a related question on r-help list told off list not appropriate list uses private notation roxygen2, however, export data sets qdapdictionaries
. tried adding @export
.r file describes data sets results in error when compiling.
> 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 lazyload db ** inst ** preparing package lazy loading ** *** installing indices ** building package indices ** testing if installed package can 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 '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)
clearly not exporting these data sets correctly. how can export data sets qdapdictionaries
can use @importfrom
in parent qdap
package?
here 1 of documentations data sets looks like:
#' fry's 100 commonly used english words #' #' stopword list containing character vector of stopwords. #' #' @details fry's word list: first 25 make one-third of printed #' material in english. first 100 make one-half of printed #' material in english. first 300 make 65\% of printed #' material in english." #' #' #' @doctype data #' @keywords datasets #' @name top100words #' @usage data(top100words) #' @format character vector 100 elements #' @export #' @references fry, e. b. (1997). fry 1000 instant words. lincolnwood, il: #' contemporary books. null
note have qdapdictionaries
listed in depends section of description file r dev version cran check reveals need still import datasets qdapdictionaries
used within parent qdap
package.
Comments
Post a Comment