Colin Gillespie csgilles...@gmail.com
on Mon, 10 Aug 2015 20:33:32 + writes:
Dear All,
I have a package that uses reference classes. When I build the package I
get numerous notes of the sort
Note: no visible binding for '-' assignment to 'pars'
I've tried using
To your question:
Reference classes are used in *many* places, and the use of ' - '
is really standard there.
e.g., package 'lme4', or 'pcalg' are two packages I'm involved with,
which use ref.classes and ' - ' but are fine with that.
So there must be something peculiar in your
You can avoid the temporary file by replacing
dput(def, file= (tf - tempfile()))
compiler::cmpfile(tf)
with
cdef - compiler::compile(def)
#Note: no visible binding for '-' assignment to 'ConfigString'
The compiled code appears to work.
eval(cdef)
c1 - Config$new()
c1
#Reference
This is a problem in the compiler package. Here is a way to reproduce it:
def - quote(Config - setRefClass(Config,
fields = list(
ConfigString = character),
methods = list(
# Constructor
initialize = function() {
ConfigString - Hello, World!
})
Dear All,
I have a package that uses reference classes. When I build the package I
get numerous notes of the sort
Note: no visible binding for '-' assignment to 'pars'
I've tried using GlobalVariables, but that didn't solve the issue.
After some googling, I came across the page