From wewolski at gmail.com  Sat Dec 10 19:24:30 2016
From: wewolski at gmail.com (Witold E Wolski)
Date: Sat, 10 Dec 2016 19:24:30 +0100
Subject: [Rd] Fwd: Error: XYZ is not an exported object
In-Reply-To: <CAAjnpdgeQQAW0+WO1B6g9dA2-S_GTGLh-2APFEg8O3MRc3TFBw@mail.gmail.com>
References: <CAAjnpdgeQQAW0+WO1B6g9dA2-S_GTGLh-2APFEg8O3MRc3TFBw@mail.gmail.com>
Message-ID: <CAAjnpdiGw18QuZpb-2BwLGVw1tkKvo=_R+adh304TZcbRT8JWw@mail.gmail.com>

I am wrting a package.
I have a dataset in data/AminoAcids.tsv and would like to be able to
access it with

bibliospec::AminoAcids

from within my package code.

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

I am able to access the data in package code with
data(AminoAcids)
AminoAcids

but this will give me a NOTE with R CMD check

Also when using the package I am able to access the data with
bibliospec::AminoAcids


So why can't I access bibliospec::AminoAcids from within package code?


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

Help highly appreciated.

Thank you

--
Witold Eryk Wolski


-- 
Witold Eryk Wolski



[Rd] Fwd: Error: XYZ is not an exported object
Witold E Wolski