Re: [Rd] Possible documentation problem/bug?

2020-04-30 Thread Deepayan Sarkar
On Thu, Apr 30, 2020 at 6:04 PM Dominic Littlewood <11dlittlew...@gmail.com> wrote: > > It seems like there is no obvious way in the documentation to convert the > expressions in the dots argument to a list without evaluating them. Say, if > you want to have a function that prints all its arguments

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

2020-04-30 Thread Spencer Graves
Hi, Jeroen et al.: On 2020-04-30 03:15, Jeroen Ooms wrote: On Thu, Apr 30, 2020 at 6:38 AM Spencer Graves wrote: Hello, All: "00install.out" from "R CMD check Ecfun_0.2-4.tar.gz" includes: Error: package or namespace load failed for 'Ecfun': .onLoad failed in loadNamespace() f

[Rd] paste(character(0), collapse="", recycle0=FALSE) should be ""

2020-04-30 Thread suharto_anggono--- via R-devel
Without 'collapse', 'paste' pastes (concatenates) its arguments elementwise (separated by 'sep', " " by default). New in R devel and R patched, specifying recycle0 = FALSE makes mixing zero-length and nonzero-length arguments results in length zero. The result of paste(n, "th", sep = "", recycle

Re: [Rd] [External] Re: R 4.0.0 build error with sysdata.rda on ppc64el architecture

2020-04-30 Thread Tomas Kalibera
On 4/30/20 4:37 PM, Dirk Eddelbuettel wrote: On 30 April 2020 at 09:11, luke-tier...@uiowa.edu wrote: | On Thu, 30 Apr 2020, Dirk Eddelbuettel wrote: | Maybe I missed something. How is the 'compiler' package involved? See the other email thread; you replied (~ 26 hours ago) to my message adding

Re: [Rd] [External] Re: R 4.0.0 build error with sysdata.rda on ppc64el architecture

2020-04-30 Thread Dirk Eddelbuettel
On 30 April 2020 at 09:11, luke-tier...@uiowa.edu wrote: | On Thu, 30 Apr 2020, Dirk Eddelbuettel wrote: | Maybe I missed something. How is the 'compiler' package involved? See the other email thread; you replied (~ 26 hours ago) to my message adding that "sysdata.rda in 'tools' hanging was wron

Re: [Rd] [External] Re: R 4.0.0 build error with sysdata.rda on ppc64el architecture

2020-04-30 Thread Peter Dalgaard
I don't think compiler was involved, it was just the next thing after sysdata.rda, so a suspect at some point. -pd > On 30 Apr 2020, at 16:11 , luke-tier...@uiowa.edu wrote: > > On Thu, 30 Apr 2020, Dirk Eddelbuettel wrote: > >> >> On 30 April 2020 at 09:42, Iñaki Ucar wrote: >> | On Thu, 30

Re: [Rd] [External] Re: R 4.0.0 build error with sysdata.rda on ppc64el architecture

2020-04-30 Thread luke-tierney
On Thu, 30 Apr 2020, Dirk Eddelbuettel wrote: On 30 April 2020 at 09:42, Iñaki Ucar wrote: | On Thu, 30 Apr 2020 at 02:49, Dirk Eddelbuettel wrote: | > And to keep the list abreast, this appears to be related to the long double | > issue on powerpc where needed an extra #define to ensure compi

Re: [Rd] Use of MathJax (or something similar) in .Rd files

2020-04-30 Thread Ravi Varadhan
Thank you. This is a very useful idea! Best, Ravi From: R-devel on behalf of Viechtbauer, Wolfgang (SP) Sent: Thursday, April 30, 2020 6:59:02 AM To: r-devel Subject: Re: [Rd] Use of MathJax (or something similar) in .Rd files Thanks Gabor and Duncan! It wo

Re: [Rd] R 4.0.0 build error with sysdata.rda on ppc64el architecture

2020-04-30 Thread Dirk Eddelbuettel
On 30 April 2020 at 09:42, Iñaki Ucar wrote: | On Thu, 30 Apr 2020 at 02:49, Dirk Eddelbuettel wrote: | > And to keep the list abreast, this appears to be related to the long double | > issue on powerpc where needed an extra #define to ensure compilation. That [...] | Which reminds me that [1] w

Re: [Rd] Possible documentation problem/bug?

2020-04-30 Thread Sokol Serguei
Le 30/04/2020 à 14:31, Dominic Littlewood a écrit : It seems like there is no obvious way in the documentation to convert the expressions in the dots argument to a list without evaluating them. Say, if you want to have a function that prints all its arguments: If you wish to iterate through all

[Rd] Possible documentation problem/bug?

2020-04-30 Thread Dominic Littlewood
It seems like there is no obvious way in the documentation to convert the expressions in the dots argument to a list without evaluating them. Say, if you want to have a function that prints all its arguments: > foo(abc$de, fg[h], i) abc$de fg[h] i ...then converting them to a list would be helpfu

Re: [Rd] Use of MathJax (or something similar) in .Rd files

2020-04-30 Thread Viechtbauer, Wolfgang (SP)
Thanks Gabor and Duncan! It works. For those interested, I added this to the beginning of the \details{} section: \if{html}{\out{ https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js";> }} And then I can use: \if{html}{\out{\(B_{x(a,b)} = \int_0^x t^{a-1} (1-t)^{b-1} dt\)}} or \if

Re: [Rd] Use of MathJax (or something similar) in .Rd files

2020-04-30 Thread Duncan Murdoch
On 30/04/2020 6:15 a.m., Viechtbauer, Wolfgang (SP) wrote: Interesting. I gave this a try, but couldn't make this work. One would have to infuse something like https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js";> or into the .html file, but just adding this to the .Rd file (

Re: [Rd] Use of MathJax (or something similar) in .Rd files

2020-04-30 Thread Duncan Murdoch
This sounds promising. Also remember that user-defined macros are possible, so even if you need a lot of contortions to enter the code, you can simplify it at the Rd level. Duncan Murdoch On 30/04/2020 5:50 a.m., Gábor Csárdi wrote: You can probably already do this using the \if{html} condit

Re: [Rd] Use of MathJax (or something similar) in .Rd files

2020-04-30 Thread Viechtbauer, Wolfgang (SP)
Interesting. I gave this a try, but couldn't make this work. One would have to infuse something like https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js";> or into the .html file, but just adding this to the .Rd file (directly or wrapped with \if{html}{}) doesn't do that (it

Re: [Rd] Use of MathJax (or something similar) in .Rd files

2020-04-30 Thread Gábor Csárdi
You can probably already do this using the \if{html} conditional, and either including the matchjax js files in the package, or getting them from a CDN. Gabor On Thu, Apr 30, 2020 at 9:13 AM Viechtbauer, Wolfgang (SP) wrote: > > Hello All, > > I am wondering if there has ever been any discussion

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

2020-04-30 Thread Jeroen Ooms
On Thu, Apr 30, 2020 at 6:38 AM Spencer Graves wrote: > > Hello, All: > > >"00install.out" from "R CMD check Ecfun_0.2-4.tar.gz" includes: > > > Error: package or namespace load failed for 'Ecfun': > .onLoad failed in loadNamespace() for 'rJava', details >call: inDL(x, as.logical(lo

[Rd] Translations and snprintf on Windows

2020-04-30 Thread Michael Chirico
[a bit unsure on if this is maybe better for r-package-devel] We recently added translations to messages at the R and C level to data.table. At the C level, we did _() wrapping for char arrays supplied to the following functions: error, warning, Rprintf, Error, and snprintf. This seemed OK but t

[Rd] Use of MathJax (or something similar) in .Rd files

2020-04-30 Thread Viechtbauer, Wolfgang (SP)
Hello All, I am wondering if there has ever been any discussion/consideration given to incorporating MathJax (or something similar) into R for rendering equations in .Rd files. I know that equations are rendered beautifully in the pdf manuals, but I suspect the majority of users primarily look

Re: [Rd] R 4.0.0 build error with sysdata.rda on ppc64el architecture

2020-04-30 Thread Iñaki Ucar
On Thu, 30 Apr 2020 at 02:49, Dirk Eddelbuettel wrote: > > > On 29 April 2020 at 11:22, peter dalgaard wrote: > | Hum, at least it is not Apple, so maybe you can attach a debugger to the > running process? (gdb -p process_id or something like that --- haven't > actually done it for a decade). Th