[Rd] Creating Namespace and locking it during runtime?

2014-01-22 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I would like to create a Namespace during runtime, and not during loading a package. My reasoning is that I want to be able to store a number of variables and to "protect them from the user" (might be even myself). The code will not be in a packag

Re: [Rd] Linking to native routines in other packages

2014-01-22 Thread Romain François
Hello, The problem is that you have logic in both your mother and child packages. IMO, you should only have logic in the mother package. I’ve done this in a number of packages, it requires a bit of work initially, but not that much. What I’d do is have something like this in mother/inst/inc

Re: [Rd] Linking to native routines in other packages

2014-01-22 Thread Gregor Kastner
Hi again, On Wed, 22 Jan 2014 06:39:17 -0600 Dirk Eddelbuettel wrote: | Working examples I know of: | |'xts' importing two functions from 'zoo' | |'RcppXts' importing approx. ten functions from 'xts' | | Maybe by comparing to these you can sort out the missing step at your end. Th

[Rd] Behavior of --install-tests and testInstalledPackage

2014-01-22 Thread Brian Lee Yung Rowe
Hello, I'm writing a script that automates the testing of reverse dependencies of a package. I found the function testInstalledPackage in the tools package, which seems to do what I want. However, when I use it for a source package that was installed with --install-tests, I've noticed that only

Re: [Rd] Package checking: verifying plots

2014-01-22 Thread baptiste auguie
Hi, Winston Chang designed the vtest package for a similar purpose, https://github.com/wch/ggplot2/wiki/Visual-test-system https://github.com/wch/vtest I don't know if / how well it works outside the ggplot2 framework, but it's pretty slick. HTH, baptiste On 22 January 2014 11:35, Therneau

Re: [Rd] Package checking: verifying plots

2014-01-22 Thread Prof Brian Ripley
On 22/01/2014 14:35, Therneau, Terry M., Ph.D. wrote: I pride myself on having an extensive and comprehensive test suite for the survival package. However, I don't have a good procedure for testing the plotting routines. (Forget "good", I don't even have a third-rate procedure for this.) This

[Rd] Package checking: verifying plots

2014-01-22 Thread Therneau, Terry M., Ph.D.
I pride myself on having an extensive and comprehensive test suite for the survival package. However, I don't have a good procedure for testing the plotting routines. (Forget "good", I don't even have a third-rate procedure for this.) This was brought home with the latest release; within 24

Re: [Rd] Linking to native routines in other packages

2014-01-22 Thread Dirk Eddelbuettel
Hi Gregor, On 22 January 2014 at 11:53, Gregor Kastner wrote: | in my package 'stochvol' I have unsuccessfully been trying to make a C | routine called 'sampler' available to be called from other packages' C code. | | Following | http://cran.r-project.org/doc/manuals/R-exts.html#Linking-to-nati

[Rd] Linking to native routines in other packages

2014-01-22 Thread Gregor Kastner
Dear all, in my package 'stochvol' I have unsuccessfully been trying to make a C routine called 'sampler' available to be called from other packages' C code. Following http://cran.r-project.org/doc/manuals/R-exts.html#Linking-to-native-routines-in-other-packages I have included #include R_init_