Re: [R] Using library in an example

2008-06-05 Thread Jim Lemon
Thanks to Dirk and Duncan Dirk's suggestion of the suppressMessages function unfortunately doesn't quite do the job. The warning message isn't printed, but it is picked up by the check function and leads to a whinge. Duncan is right - I had an older version of "maps" and installing the new v

Re: [R] Using library in an example

2008-06-04 Thread Duncan Murdoch
On 6/4/2008 8:09 AM, Jim Lemon wrote: Hi all, I've been trying to include a nice example in the Rd file for a function and cannot work out how to get it through R check. If I use: if(require(maps,quietly=TRUE)) { ... Warning message: 'Sys.putenv' is deprecated. Use 'Sys.setenv' instead. See

[R] Using library in an example

2008-06-04 Thread Jim Lemon
Hi all, I've been trying to include a nice example in the Rd file for a function and cannot work out how to get it through R check. If I use: if(require(maps,quietly=TRUE)) { ... Warning message: 'Sys.putenv' is deprecated. Use 'Sys.setenv' instead. See help("Deprecated") The warning message