The basic tool is setLoadActions(), which takes a function definition, with the
package's namespace as its argument. Read ?setLoadActions
There is no such thing as setLoadFunction, as far as the standard code in R.
While you haven't defined "didn't work", an off-the-top-of-the-head idea would
Dirk Eddelbuettel writes:
> On 4 October 2013 at 14:15, Rainer M Krug wrote:
> | Hm. loadModule is Rcpp function, but I am only interested in using the
> | setClass() function, which has nothing to do with Rcpp. I don't even use
> | Rcpp in the package, only in one which is imported.
>
> Sorry, a
On 4 October 2013 at 14:15, Rainer M Krug wrote:
| Hm. loadModule is Rcpp function, but I am only interested in using the
| setClass() function, which has nothing to do with Rcpp. I don't even use
| Rcpp in the package, only in one which is imported.
Sorry, assumed Reference Class created via Mod
Dirk Eddelbuettel writes:
> On 4 October 2013 at 12:59, Rainer M Krug wrote:
> | Thanks John
> |
> | that is likely the solution to my problem, but I don't understand
> | how I
> | can use it and I can't find the example in the Rcpp package (I did
> | grep
> | for setLoadAtion on the whole sourc
On 4 October 2013 at 12:59, Rainer M Krug wrote:
| Thanks John
|
| that is likely the solution to my problem, but I don't understand how I
| can use it and I can't find the example in the Rcpp package (I did grep
| for setLoadAtion on the whole source package of Rcpp, but nothing came up
with ).
Thanks John
that is likely the solution to my problem, but I don't understand how I
can use it and I can't find the example in the Rcpp package (I did grep
for setLoadAtion on the whole source package of Rcpp, but nothing came up with
). Could you
please provide me a link (or the filename) where
Don't use .onLoad() to set class (or other nontrivial) information at load
time. Use setLoadActions(), which was created exactly to get around the
limitations of .onLoad().
For an example, see the Rcpp package, which uses this to set up load-time C++
linkages.
John Chambers
On Oct 3, 2013, a