Dear Duncan,
Thank you very much!
>
> For data, the sysdata.rda file is the easiest solution. It's for data
> that is used by the functions in the package, not user-visible. Just
> put x into that file in the package/R directory to make use of it.
>
> You don't need a two-pass solution. As lon
Dear all,
I am trying to understand the usage of package data.
Suppose I create an object and save it
x <- 3
save(x, 'sysdata.rda')
and then put it into mypac/data/ directoy.
And suppose in my packge code I have
f <- function(x) x+1
Then, when the package has been built, installed, and
Dear Dario,
I think differently, I think my examples show the resemblance between
the way of "dispatching" for S4 generic and that for C++ overloaded
function.
Both are dispatched ONLY through the type of arguments.
Again following your original example:
int larger(int x, int y);
char larger(char