Re: [R-pkg-devel] [BULK] Re: [Rd] "not a valid win32 application" with rtools40-x86_65.exe on Windows 10

2020-05-11 Thread Spencer Graves
Hi, Simon et al. [changing to "R-package-devel, because I've heard complaints that this may not be appropriate for R-devel.]   I'm still having problems.  I found that I had Java twice in the path and deleted both versions (~\AdoptOpenJDK\jdk-11.0.6.10-hotspot\bin and ~Java\jre1.8.0_24

Re: [R-pkg-devel] Documentation for non-user-level objects

2020-05-11 Thread Maëlle SALMON via R-package-devel
I see you already got useful answers, but here is a further resource: I wrote a blog post about internal functions earlier this year Best wishes Maëlle. Den söndag 10 maj 2020 23:32:00 CEST, Sapphire Zhou skrev: I met a problem wh

Re: [R-pkg-devel] A Note about Vignette

2020-05-11 Thread Bert Gunter
You really need to read the 'Writing R Extensions" manual, in particular the section on the DESCRIPTION file. You are asking basic questions that are covered there. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berke

Re: [R-pkg-devel] A Note about Vignette

2020-05-11 Thread Max Turgeon
Good afternoon, It probably means that in your DESCRIPTION file, you wrote something like VignetteBuilder: knitr If you don't have a vignette, you should remove that line. Max Turgeon Assistant Professor Department of Statistics Department of Computer Science University of Manitoba maxturgeo

[R-pkg-devel] A Note about Vignette

2020-05-11 Thread Sapphire Zhou
I obtained a note for my R package from the feedback of CRAN Package has a VignetteBuilder field but no prebuilt vignette index. Actually, there is no vignettes in my package. What is meaning of this note? How could I fix it?

Re: [R-pkg-devel] Assigning values to fields in Reference Classes

2020-05-11 Thread Per Nyfelt
I developed a package where reference classes is used a lot. When submitting it to CRAN i got the feedback that  i should not use <<- as that was "modifying the global environment". That was a misunderstanding that was sorted out but before it was, I started to investigate alternative ways to a

Re: [R-pkg-devel] Assigning values to fields in Reference Classes

2020-05-11 Thread Bert Gunter
What does this have to do with package development? Seems more like a query for r-help. Cheers, Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Mon, May 11, 2020

[R-pkg-devel] Assigning values to fields in Reference Classes

2020-05-11 Thread Per Nyfelt
Hi, I have been playing with alternative ways to assign values to fields in reference classes. Besides the "standard" <<- there are two other ways that also "seems to work". One is using .self$fieldName assigned with <- and the the other one is field(fieldName, value). With regards to the

Re: [R-pkg-devel] how to specify to let a package only build 64bit on CRAN

2020-05-11 Thread Jan Wijffels
Dirk, Thanks. I'll use this suggestion as well. have a nice day, Jan Jan Wijffels Statistician www.bnosac.be  | +32 486 611708 ‐‐‐ Original Message ‐‐‐ On Monday 11 May 2020 15:51, Dirk Eddelbuettel wrote: > > > On 11 May 2020 at 13:13, Joris Meys wrote: > | To add to the suggestion o

Re: [R-pkg-devel] how to specify to let a package only build 64bit on CRAN

2020-05-11 Thread Dirk Eddelbuettel
On 11 May 2020 at 13:13, Joris Meys wrote: | To add to the suggestion of Gabor and Duncan, it might be a good idea to add a packageStartupMessage that warns the user about the problem when running on a 32bit system. You can easily extract that info from R.Version()$arch . That might help negot

Re: [R-pkg-devel] how to specify to let a package only build 64bit on CRAN

2020-05-11 Thread Joris Meys
Hi Jan, To add to the suggestion of Gabor and Duncan, it might be a good idea to add a packageStartupMessage that warns the user about the problem when running on a 32bit system. You can easily extract that info from R.Version()$arch . That might help negotiating with CRAN. Kind regards Joris

Re: [R-pkg-devel] how to specify to let a package only build 64bit on CRAN

2020-05-11 Thread Jan Wijffels
Gabor/Joris, Thanks for the suggestions! I'll try it out and see if it reaches the CRAN servers. best, Jan Jan Wijffels Statistician www.bnosac.be  | +32 486 611708 ‐‐‐ Original Message ‐‐‐ On Monday 11 May 2020 15:13, Joris Meys wrote: > Hi Jan, > > To add to the suggestion of Gabor

Re: [R-pkg-devel] how to specify to let a package only build 64bit on CRAN

2020-05-11 Thread Gábor Csárdi
Hi Jan, this is the only example that I could find: https://github.com/cran/regRSM/blob/master/DESCRIPTION#L13 I.e. you can have an 'Archs' field in DESCRIPTION, and apparently you can set that to 'i386' or 'x64' or both. I don't know what OSes support this field, and this package hasn't been u

Re: [R-pkg-devel] how to specify to let a package only build 64bit on CRAN

2020-05-11 Thread Jan Wijffels
Duncan, Thanks for the confirmation that there isn't a formal way to state this 64bit dependency. have a nice day, Jan Jan Wijffels Statistician www.bnosac.be  | +32 486 611708 ‐‐‐ Original Message ‐‐‐ On Monday 11 May 2020 14:55, Duncan Murdoch wrote: > On 11/05/2020 8:46 a.m., Jan

Re: [R-pkg-devel] how to specify to let a package only build 64bit on CRAN

2020-05-11 Thread Duncan Murdoch
On 11/05/2020 8:46 a.m., Jan Wijffels wrote: Duncan, Thanks for the reply. Let me make this more clear. The R package reticulate works on 32bit and 64bit. My golgotha package depends on reticulate and an extra Python package called torch which is not available for 32bit platforms. This is spec

Re: [R-pkg-devel] how to specify to let a package only build 64bit on CRAN

2020-05-11 Thread Jan Wijffels
Duncan, Thanks for the reply. Let me make this more clear. The R package reticulate works on 32bit and 64bit. My golgotha package depends on reticulate and an extra Python package called torch which is not available for 32bit platforms. This is specified in the DESCRIPTION file at https://githu

Re: [R-pkg-devel] how to specify to let a package only build 64bit on CRAN

2020-05-11 Thread Duncan Murdoch
On 11/05/2020 7:54 a.m., Jan Wijffels wrote: Hello everyone, I have a package which I would like to host on CRAN. The package is at https://github.com/bnosac/golgotha The package only builds on 64bit however because the package uses R package reticulate which requires a python library called t

[R-pkg-devel] how to specify to let a package only build 64bit on CRAN

2020-05-11 Thread Jan Wijffels
Hello everyone, I have a package which I would like to host on CRAN. The package is at https://github.com/bnosac/golgotha The package only builds on 64bit however because the package uses R package reticulate which requires a python library called torch which does not build on 32 bit platforms.

Re: [R-pkg-devel] MacOS flat namespace

2020-05-11 Thread Bob Rudis
Can you provide a bit more context? I just grabbed the pkg source from CRAN and it builds fine. $ clang --version Apple clang version 11.0.3 (clang-1103.0.32.59) Target: x86_64-apple-darwin19.5.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefa

Re: [R-pkg-devel] Documentation for non-user-level objects

2020-05-11 Thread Ben Bolker
   If you've exported them then they are "user-level objects". You can either remove them from the list of exported objects (edit your NAMESPACE or change your roxygen specifications), or document them somewhere.  One standard solution is  to use the "internal" keyword