[R-pkg-devel] recommendation: codetoolsBioC

2015-07-13 Thread Kasper Daniel Hansen
With the new NAMESPACE requirements of importing everything in the bundled packages I would like to recommend using writeNamespaceImports from codetoolsBioC. This analyzes your code and produces a NAMESPACE file with all imports. Of course, you might benefit from checking it manually. This pac

Re: [R-pkg-devel] Running tests on 32-bit and 64-bit

2015-08-17 Thread Kasper Daniel Hansen
Perhaps related: in the Bioconductor minfi package I do some checking on somewhat large matrices (450,000 times n). To save space, I compute a hash of the correct result using the digest package. As you, I ran into obvious issues with precision across platforms. To solve this, I take the matrix

Re: [R-pkg-devel] Creating Accessor Methods

2016-03-10 Thread Kasper Daniel Hansen
Creating functions that looks like they have the same name, but have different internals is exactly (one of) the purposes of having methods. Best, Kasper On Thu, Mar 10, 2016 at 4:04 PM, Glenn Schultz wrote: > Hello Joris, > > Thank worked perfectly. My main concern was that I was creating mul

Re: [R-pkg-devel] set generic and methods when slot is a function

2016-03-28 Thread Kasper Daniel Hansen
This syntax Omega(x = 1) seems weird. How do you know that this call should refer back to the Model object and not some other hypothetical Model2 object? The code you're defining should make something like this work Omega(Model)(x=1) where you can see the direct dependence on the Model object

Re: [R-pkg-devel] Data for unit testing in packages

2016-05-20 Thread Kasper Daniel Hansen
Very similar here. I use the RUnit framework, which has testing scripts in inst/unitTests I put scripts for creating the test data in inst/testData and save rda files into inst/unitTests I create the data set by R CMD BATCH and I save the .Rout file which creates the test data, so I have a

Re: [R-pkg-devel] relation between vignettes and help files

2016-07-15 Thread Kasper Daniel Hansen
Well, I think it would be a headache, and suboptimal, to require vignettes to be renderable as text. There are several issues including that not all vignettes have an included "source" file; there are packages with important vignettes which are only available as PDFs (or HTML). Also math and plot

Re: [R-pkg-devel] Wrapping a third-party c++ library

2016-08-23 Thread Kasper Daniel Hansen
Remember there are no rules for a configure script, there is only the tradition that it is a script you invoke prior to make. "Hand-written" configure scripts can do anything they want. In this case, I had a 2s look at the configure script in the ngs project which ultimately are a series of "konf

Re: [R-pkg-devel] Weird MAKEFLAGS bug

2017-01-11 Thread Kasper Daniel Hansen
For a package, you should not mess with the optimization flag unless you are disabling high optimization because it produces wrong code. If people want to use higher optimization flags, they'll compile with higher flags. On Tue, Jan 10, 2017 at 3:39 PM, Costas Tsirogiannis wrote: > Thanks a lot

Re: [R-pkg-devel] no visible global function definition for ‘par’

2017-01-30 Thread Kasper Daniel Hansen
On Mon, Jan 30, 2017 at 12:04 PM, Cathy Lee Gierke wrote: > That is the obvious solution, but it doesn't seem correct: I have pdf > included in the description, and namespace files, yet it is being called > out. Additionally, aren't most of these pkgs in the packages included by > default? > N

Re: [R-pkg-devel] While using R CMD check: LaTex error: File `inconsolata.sty' not found

2017-02-05 Thread Kasper Daniel Hansen
If you installed MacTex basic, you should have the command line utility tlmgr available. On my system it is in /Library/TeX/texbin/tlmgr and you may need to add this to your path. Using this, it is simple to install additional packages, by tlmgr install inconsolata You probably need to add a

Re: [R-pkg-devel] multiple bibentry()s in CITATION

2017-03-27 Thread Kasper Daniel Hansen
Thanks. It would be great to have this working in 3.4. In Bioc there are multiple packages with CITATION files with multiple entries, one such example is minfi bioconductor.org/packages/minfi On my wishlist is that it would be great to have support for printing the header field which many peop

Re: [R-pkg-devel] multiple bibentry()s in CITATION

2017-03-27 Thread Kasper Daniel Hansen
eileis wrote: > On Mon, 27 Mar 2017, Kasper Daniel Hansen wrote: > > Thanks. It would be great to have this working in 3.4. In Bioc there are >> multiple packages with CITATION files with multiple entries, one such >> example is minfi >> bioconductor.org/packages/minfi

Re: [R-pkg-devel] Package submission to CRAN not passing incoming checks

2024-04-22 Thread Kasper Daniel Hansen
1. The version number complaint is the use of 0.1.2-9033. It is complaining about 9033. Personally, I would not use the - style, but that is a personal choice I guess. R-exts says "The mandatory ‘Version’ field gives the version of the package. This is a sequence of at least *two* (and usuall

Re: [R-pkg-devel] GPL + other licence

2018-04-10 Thread Kasper Daniel Hansen
There are 3 solutions. (1) You (get permission) to change the library to GPL. (2) You get permission to change the license of the R code to whatever license the library is released under. (3) you split the package. You have investigated (1) and it does not work. I would suggest thinking about

Re: [R-pkg-devel] R-extension requirement about third-party random number generators (RNG)

2024-09-27 Thread Kasper Daniel Hansen
John, Your post does not have many details but why do you think that instantiating 4 instances of the Mersenne Twister will keep the streams independent? It is possible to get independent streams, but it will need more work. Best, Kasper On Fri, Sep 27, 2024 at 11:17 AM Dirk Eddelbuettel wrote: