I am wrting a package and would like to be able to export it to access it with:

packagename::dataset

This is how my roxygen doc for the data object looks like:
#' Data frame with amino acid masses
#'
#' @name AminoAcids
#' @docType data
#' @keywords data
#' @export
NULL

It does end up in the namespace file with:
export(AminoAcids)

the data is in the data/ folder of the package.
and I can load it with data(AminoAcid)

Still R CMD build gives me the error:
Error : 'AminoAcids' is not an exported object from 'namespace:bibliospec'

because I am trying to access it with bibliospec::AminoAcids

Help highly appreciated.

Thank you

-- 
Witold Eryk Wolski

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to