Re: [R] The Suggests field in a DESCRIPTION file.

2018-11-17 Thread Rolf Turner
On 11/18/18 11:22 AM, Fox, John wrote: Dear Rolf, "fortunes" needs to be quoted in requireNamespace("fortunes", quietly=TRUE). I hope this helps, John Thanks. I actually figured this out myself, just before getting your message! cheers, Rolf -- Technical Editor ANZJS Department of

Re: [R] The Suggests field in a DESCRIPTION file --- never mind!!!

2018-11-17 Thread Rolf Turner
I figured it out. The package name in the call to requireNamespace() has to be a *text string*. I should've had: fortOK <- requireNamespace("fortunes",quietly=TRUE) So require() takes a package name, but requireNamespace() takes a *string* specifying the package name. Trap for young

Re: [R] The Suggests field in a DESCRIPTION file.

2018-11-17 Thread Fox, John
sciences.mcmaster.ca/jfox/ > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Rolf Turner > Sent: Saturday, November 17, 2018 5:17 PM > To: r-help@r-project.org > Subject: [R] The Suggests field in a DESCRIPTION file. > > > I am

[R] The Suggests field in a DESCRIPTION file.

2018-11-17 Thread Rolf Turner
I am building a package which contains a function from which I wish to call the fortune() function from the fortunes package --- if that package is available. I have place the line Suggests: fortunes in the DESCRIPTION file. In my code for the function that I am writing (let's call it