Displaying 2 results from an estimated 2 matches for "ac9nw".
2007 May 25
1
private variables in package.
...should be a basic question.
I am writing my first package.
It has several functions, which should be callable by users.
These functions use several variables, and I would like to hide these
variables from users.
How can I do it?
For example, the package has a function AB2C, which uses the variable ac9nw.
If I add the file NAMESPACE, exporting only AB2C, then I get the error:
Error in AB2C(a, b, model.type) : object "ac9nw" not found
I also tried to include in the .onLoad function the code, defining these
variables with <<-
However, this code has created all internal variable...
2007 May 25
1
Problem with accessing internal variable in package.
...quot;unk","Y","Nh",
"plot.C","read.AC9.data","EstimC","plot.AC9"),
namespace=TRUE,force=TRUE)
Among others, the package contains the functions EstimC, AB2C, AB2C.S, and
AB2C.HK, and variables ac9nw, ac9wl, ac9aw, ...
Functions use these variables for calculations, and I would like to hide
them from users.
The file NAMESPACE contains the single line:
export(AB2C.HK,AB2C,AB2C.S,EstimC,plot.C,read.AC9.data,plot.AC9)
I am getting the following error:
Error in AB2C(a, b, model.type) : object &...