Re: [R-pkg-devel] two functions with the same name when importing

2019-11-07 Thread Martin Morgan
RShowDoc("R-exts") setion 1.5.1 Specifying imports and exports indicates that imports() has an except= argument, so import(adegenet, except = plot) might do the trick. Use it in your package as `adegenet::plot()`. Martin Morgan On 11/6/19, 8:31 PM, "R-package-devel on behalf of Duncan Murdoc

Re: [R-pkg-devel] two functions with the same name when importing

2019-11-07 Thread Bernd . Gruber
@Martin Morgan Thanks to your hint if found this: @rawNamespace import(adegenet, except = plot) which works beautifully and no need to go through each Namespace function. Thanks again to everyone. From: Martin Morgan Sent: Thursday, 7 November 2019 8:34 PM

[R-pkg-devel] How to Document and S3 Method for the Parenthesis Class?

2019-11-07 Thread bill
Hi, Short version of the question: How does one document a method for the "(" class in a .Rd file? Details: I recently contributed to the digest package functions to assist with generating sha1 hashes for formula objects. Sometimes within formula, the parenthesis ("(") class is used, for

Re: [R-pkg-devel] How to Document and S3 Method for the Parenthesis Class?

2019-11-07 Thread Duncan Murdoch
On 07/11/2019 9:35 a.m., b...@denney.ws wrote: Hi, Short version of the question: How does one document a method for the "(" class in a .Rd file? Details: I recently contributed to the digest package functions to assist with generating sha1 hashes for formula objects. Sometimes wit

Re: [R-pkg-devel] How to Document and S3 Method for the Parenthesis Class?

2019-11-07 Thread Jeff Newmiller
There are three types of quoting in R... " and ' are for strings, and ` (backtick) is for symbols. On November 7, 2019 6:35:49 AM PST, b...@denney.ws wrote: >Hi, > > > >Short version of the question: How does one document a method for the >"(" >class in a .Rd file? > > > >Details: > >I recentl

Re: [R-pkg-devel] How to Document and S3 Method for the Parenthesis Class?

2019-11-07 Thread bill
Thank you, Duncan, that fixed it! -Original Message- From: Duncan Murdoch Sent: Thursday, November 7, 2019 10:27 AM To: b...@denney.ws; r-package-devel@r-project.org Subject: Re: [R-pkg-devel] How to Document and S3 Method for the Parenthesis Class? On 07/11/2019 9:35 a.m., b...@denney

Re: [R-pkg-devel] How to Document and S3 Method for the Parenthesis Class?

2019-11-07 Thread bill
That's fair, though it's not 100% consistent because code like the following works for symbols, too: "(\\@" <- 1 (This is selected to show how bad things can be done-- not as an example to advocate.) -Original Message- From: Jeff Newmiller Sent: Thursday, November 7, 2019 10:43 AM To

Re: [R-pkg-devel] How to Document and S3 Method for the Parenthesis Class?

2019-11-07 Thread Jeff Newmiller
That works not because of how the language works but because that is how the `<-` function works. On November 7, 2019 7:47:57 AM PST, b...@denney.ws wrote: >That's fair, though it's not 100% consistent because code like the >following works for symbols, too: > >"(\\@" <- 1 > >(This is selected to

[R-pkg-devel] Set env variables for cmake

2019-11-07 Thread Sameh M. Abdulah
I am using CMake command inside the configure file to install some dependencies for my package. These CMake commands require setting an environment variable. When I set it inside the configure file, it does not work!. Thus, I have used .Renviron file to set my env variables. This solution works