Note that you can also include modules within a C++ file and sourceCpp will
automatically add them to the calling environment (as if you had "sourced"
the definition of an R reference class).
On Mon, Dec 4, 2017 at 12:36 PM, Tim Keitt wrote:
>
>
> http://www.keittlab.org/
>
> On Mon, Dec 4, 201
http://www.keittlab.org/
On Mon, Dec 4, 2017 at 10:47 AM, David Bellot
wrote:
> | - What is the correct way to do that ?
>>
>> In a package, yes. Modules require a package. Outside of a package,
>> consider
>> using a package instead :)
>>
>
> Huh ?
> OK I'm lost now :-D
>
> So in the end, how
>
> | - What is the correct way to do that ?
>
> In a package, yes. Modules require a package. Outside of a package,
> consider
> using a package instead :)
>
Huh ?
OK I'm lost now :-D
So in the end, how would it work ? What am I missing in my code to make it
work ?
>
> I think a few other
On 4 December 2017 at 15:44, David Bellot wrote:
| Hi,
|
| I'd like to dynamically add functions to a module when I call one of its
| function. Later I will want to do the same for classes too, so that to
| create classes "on the fly".
|
| But for the moment, here is what I try to do and it does
Hi,
I'd like to dynamically add functions to a module when I call one of its
function. Later I will want to do the same for classes too, so that to
create classes "on the fly".
But for the moment, here is what I try to do and it doesn't work, because I
can't see my dynamically created function in