[Roxygen-devel] useDynLib in namespace file?

Daniel Sabanés Bové daniel.sabanesbove at gmx.net
Sun May 10 12:20:46 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi Manuel,

thank you for the quick response! I have installed the R forge
version, but had not searched the source code (only the manual, where
useDynLib does not appear yet).

Daniel

- -------- Original Message  --------
Subject: Re: [Roxygen-devel] useDynLib in namespace file?
From: Manuel J. A. Eugster <Manuel.Eugster at stat.uni-muenchen.de>
To: Daniel Sabanés Bové <daniel.sabanesbove at gmx.net>
Date: Sun May 10 2009 09:19:35 GMT+0200 (CEST)
>> first of all: thanks for this wonderful tool!! I think it is much
>> better to have just one place for documenting objects, rather than
>> in-code documentation and Rd files which you have to update manually.
>> And I love the @include tags, I have looked for them recently and
>> finally found them in roxygen by chance.
>
> Thanks, Daniel!
>
>
>> The situation:
>> I have some C code which I'm loading into my R package using a
>> useDynLib(myPackage, .registration=TRUE)
>> directive in the NAMESPACE file.
>>
>> My question:
>> Is there a way to have this line there *and* use roxygen at the same
>> time for the namespace creation?
>> If not, any suggestion for a workaround? (perhaps an .onLoad
>> function?)
>
> The R-Forge(*) development-version contains an useDynLib
> directive. You can write it anywhere in your source code
> and it is translated to the NAMESPACE file equivalent.
>
> (*) http://r-forge.r-project.org/projects/roxygen
>
>
> Best,
>
> Manuel.
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEAREKAAYFAkoGqn0ACgkQnhBrrSA4m1Ez8gCggQuZeV/utSnC6VmRrzUqUHIG
KlUAoJQf+OEM+CG7lWV7GT/X3317qIPA
=1JEc
-----END PGP SIGNATURE-----



More information about the Roxygen-devel mailing list