Open jefferis opened 8 years ago
@ajdm ping (but not actually required for the revision per se)
I had a look yesterday but failed, but will try and get it done this weekend.
So far I've tried @importFrom
tags in nblast
, etc., using get("smat.fcwb", envir=as.environment("package:nat.nblast"))
and get("smat.fcwb", envir=asNamespace("nat.nblast"))
, and none of these work. It seems you can see functions that aren't exported, but not data. Adding an @export
tag to the data objects doesn't work either. Any ideas?
Hmm. There are some ideas here: http://stackoverflow.com/questions/24354850/load-data-object-when-package-is-loaded
Sent from my iPhone
On 15 May 2016, at 17:10, James Manton notifications@github.com wrote:
So far I've tried @importFrom tags in nblast, etc., using get("smat.fcwb", envir=as.environment("package:nat.nblast")) and get("smat.fcwb", envir=asNamespace("nat.nblast")), and none of these work. It seems you can see functions that aren't exported, but not data. Adding an @export tag to the data objects doesn't work either. Any ideas?
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub
If using nblast inside another function when importing but not attaching nat.nblast
from elmr package.
workaround is to attach. Fix will involve something to do with scope of get statement (being pointed to objects in package)