Re: [Rd] Circumventing code/documentation mismatches ('R CMD check')

2011-07-05 Thread peter dalgaard
On Jul 5, 2011, at 08:00 , Johannes Graumann wrote: > Hello, > > As prompted by B. Ripley (see below), I am transfering this over from R-User > ... > > For a package I am writing a function that looks like > > test <- function(Argument1=NA){ > # Prerequisite testing > if(!(is.na(A

[Rd] Circumventing code/documentation mismatches ('R CMD check')

2011-07-04 Thread Johannes Graumann
Hello, As prompted by B. Ripley (see below), I am transfering this over from R-User ... For a package I am writing a function that looks like test <- function(Argument1=NA){ # Prerequisite testing if(!(is.na(Argument1))){ if(!(is.character(Argument1))){