[R-pkg-devel] accessing data by packagename::dataname from within package code fails.

Witold E Wolski wewolski at gmail.com
Mon Dec 12 15:45:49 CET 2016


I am wrting a package called bibliospec.
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, after loading the packagepackage I am able to access the data with
bibliospec::AminoAcids

But I can't access it from the package bibliospec code.
So why can't I access bibliospec::AminoAcids from within package code?

Help appreciated

Witold
-- 
Witold Eryk Wolski



More information about the R-package-devel mailing list