Re: [R-pkg-devel] How to get rid of R CMD check warning/note for new S4 classes

2021-02-09 Thread Sebastien Bihorel
Dear David, A follow-up if you don't mind: one slot of my actual S4 object contains either NULL or a grid::frameGrob object. As you may know, frameGrob objects inherit from multiple S3 classes: "frame" "gTree" "grob"  "gDesc". Based upon my understanding of the documentation, I need to define m

Re: [R-pkg-devel] How to get rid of R CMD check warning/note for new S4 classes

2021-02-09 Thread Sebastien Bihorel
Thanks David I will work in this direction. From: David Kepplinger Sent: Tuesday, February 9, 2021 19:11 To: Sebastien Bihorel Cc: r-package-devel@r-project.org Subject: Re: [R-pkg-devel] How to get rid of R CMD check warning/note for new S4 classes   Dear Sabastien, Your second approach is

[R-pkg-devel] How to get rid of R CMD check warning/note for new S4 classes

2021-02-09 Thread Sebastien Bihorel
Hi I posted the following message on Jan 2nd and got no response... Assuming that my timing was off (everybody was probably still on vacation or recovering from New Year's celebration), I am taking the liberty to post it again, hoping that I'll reach a larger audience today. -- I am crea

Re: [R-pkg-devel] How to get rid of R CMD check warning/note for new S4 classes

2021-02-09 Thread David Kepplinger
Dear Sabastien, Your second approach is correct, but as the warning suggests, you have to document the S4 class "character or NULL". The documentation at https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Documenting-S4-classes-and-methods should get you started. Best, David On Tue, Fe

Re: [R-pkg-devel] Subarchitectures

2021-02-09 Thread Duncan Murdoch
On 09/02/2021 11:01 a.m., Duncan Murdoch wrote: I think the WRE manual says that an R_ARCH environment variable will be set when subarchitectures are involved, but environment variables aren't accessible in Makevars. Actually, I probably misread the section about environment variables. Duncan

Re: [R-pkg-devel] Fwd: Subarchitectures

2021-02-09 Thread Duncan Murdoch
On 09/02/2021 11:30 a.m., Sokol Serguei wrote: Le 09/02/2021 à 17:01, Duncan Murdoch a écrit : I think the WRE manual says that an R_ARCH environment variable will be set when subarchitectures are involved, but environment variables aren't accessible in Makevars. Is there a standard way to get

[R-pkg-devel] Fwd: Subarchitectures

2021-02-09 Thread Sokol Serguei
Le 09/02/2021 à 17:01, Duncan Murdoch a écrit : > I think the WRE manual says that an R_ARCH environment variable will > be set when subarchitectures are involved, but environment variables > aren't accessible in Makevars. > > Is there a standard way to get a value in Makevars which will match >

[R-pkg-devel] Subarchitectures

2021-02-09 Thread Duncan Murdoch
I think the WRE manual says that an R_ARCH environment variable will be set when subarchitectures are involved, but environment variables aren't accessible in Makevars. Is there a standard way to get a value in Makevars which will match .Platform$r_arch once R is running? Duncan Murdoch ___