[R-pkg-devel] "multiple local function definitions for ‘FUN’ with different formal arguments"

2016-06-14 Thread Marius Hofert
Hi, I have a function A which calls a function B. B accepts an argument 'FUN' (a function). Depending on the choice of package, A constructs FUN and passes it on to B: A <- function(x, pkg = c("pkg1", "pkg2", "pkg3"), ...) { pkg <- match.arg(pkg) FUN <- switch(pkg, "pkg1" = {

Re: [R-pkg-devel] Roxygen and Template

2016-06-14 Thread Jenny Bryan
The "Generating Rd files" vignette has a paragraph on "Roxygen templates". vignette("rd", package = "roxygen2") but I grant you it's not terribly detailed. In these situations it can be helpful to search GitHub for other packages that do the thing you want to do. This search finds >1400 exampl

[R-pkg-devel] DLL 'cmprsk' not found: maybe not installed for this architecture?

2016-06-14 Thread Boylan, Ross
I keeping getting the error in the subject when I try to install a package from source on Windows 7. When using the same code outside of a package there is no problem; the cmprsk package is installed and its dll is present (in both the x64 and i386 directories). Our package is attempting to cal