Re: [Rd] accessing data by packagename::dataname from within package code fails.

2016-12-12 Thread Gabriel Becker
Witold, Are you using the sys data approach to actually put your data into your package's namespace? From ?data (Good practices section) Use of ‘data’ within a function without an ‘envir’ argument has the almost always undesirable side-effect of putting an object in the user's workspa

Re: [Rd] accessing data by packagename::dataname from within package code fails.

2016-12-12 Thread Witold E Wolski
I have narrowed down the problem. The error Error : 'AminoAcids' is not an exported object from 'namespace:bibliospec' Error : unable to load R code in package 'bibliospec' occurs only if I try to access the data using bibliospec::AminoAcids within the initialize method of an R reference class. I