Re: [R-pkg-devel] [Tagged] Re: multithreading in packages

2021-10-09 Thread Viechtbauer, Wolfgang (SP)
One thing I did not see mentioned in this thread (pun intended) so far: For what kind of computations is multithreading supposed to be used within the package being developed? If the computations involve a lot of linear/matrix algebra, then one could just use R with other linear algebra routines

Re: [R-pkg-devel] [External] Re: What is a "retired"package?

2021-09-21 Thread Viechtbauer, Wolfgang (SP)
:) That's a fortune nomination on my part. Best, Wolfgang >-Original Message- >From: R-package-devel [mailto:r-package-devel-boun...@r-project.org] On Behalf >Of >Hadley Wickham >Sent: Tuesday, 21 September, 2021 20:45 >To: Lenth, Russell V >Cc: r-package-devel@r-project.org >Subject: Re

Re: [R-pkg-devel] [External] R package submission fails due to using LaTeX functions that have not been implemented for building pdfs (not due to mathjaxr)

2021-06-25 Thread Viechtbauer, Wolfgang (SP)
#x27;s yet again one of these quirks that is good to document. Best, Wolfgang >-Original Message- >From: Richard M. Heiberger [mailto:r...@temple.edu] >Sent: Friday, 25 June, 2021 16:53 >To: Marc Scherstjanoi >Cc: Viechtbauer, Wolfgang (SP); r-package-devel@r-project.org &g

Re: [R-pkg-devel] speeding up package code/build/test cycle

2021-06-24 Thread Viechtbauer, Wolfgang (SP)
Dear Greg, You might want to look into the load_all() function from 'devtools'. Best, Wolfgang >-Original Message- >From: R-package-devel [mailto:r-package-devel-boun...@r-project.org] On Behalf >Of >Greg Minshall >Sent: Thursday, 24 June, 2021 11:16 >To: r-package-devel@r-project.org >

Re: [R-pkg-devel] R package submission fails due to mathjaxr package

2021-06-21 Thread Viechtbauer, Wolfgang (SP)
age- >From: Marc Scherstjanoi [mailto:marc.scherstja...@thuenen.de] >Sent: Sunday, 20 June, 2021 23:16 >To: Viechtbauer, Wolfgang (SP) >Cc: Tiago Olivoto; Max Turgeon; r-package-devel@r-project.org >Subject: Re: R package submission fails due to mathjaxr package > >Hi

Re: [R-pkg-devel] R package submission fails due to mathjaxr package

2021-06-20 Thread Viechtbauer, Wolfgang (SP)
Hi Marc, mathjaxr maintainer here. Can you provide a minimal reproducible example illustrating the problem? If this is another case where the LaTeX command for Mathjax does not work directly for creating the pdf (or vice-versa), then I would like to document this (and a possible workaround) as

Re: [R-pkg-devel] [External] Re: Two packages with the same generic function

2020-06-23 Thread Viechtbauer, Wolfgang (SP)
Re: Two packages with the same generic >function > >On 23/06/2020 4:22 a.m., Guido Schwarzer wrote: >> Am 23.06.20 um 10:00 schrieb Viechtbauer, Wolfgang (SP): >>> [...] >>> @Neal: A separate package with generic functions that pkgA and pkgB could >import is an i

Re: [R-pkg-devel] [External] Re: Two packages with the same generic function

2020-06-23 Thread Viechtbauer, Wolfgang (SP)
t;> >>>> >> >>>> There's probably a more elegant way to accomplish this. This relies >on >> >>>> "methods" returning an error if "foo" has no defined methods, so it >is >> >>> not >> >>>&

[R-pkg-devel] Two packages with the same generic function

2020-06-22 Thread Viechtbauer, Wolfgang (SP)
Hi All, Let's say there are two packages pkgA and pkgB, both of which have a generic function foo <- function(x, ...) UseMethod("foo") and pkgA has a method for objects of class "A": foo.A <- function(x, ...) print(x) and pkgB has a method for objects of class "B": foo.B <- function(x,

Re: [R-pkg-devel] RES: RES: MathJax for Rd files

2020-05-13 Thread Viechtbauer, Wolfgang (SP)
ll be loaded via the CDN, which means that you need an internet connection for equations to render. Best, Wolfgang >-Original Message- >From: Tiago Olivoto [mailto:tiagooliv...@gmail.com] >Sent: Wednesday, 13 May, 2020 21:25 >To: 'Duncan Murdoch'; Viechtbauer, Wolfgang

Re: [R-pkg-devel] RES: MathJax for Rd files

2020-05-13 Thread Viechtbauer, Wolfgang (SP)
20:31 >To: Viechtbauer, Wolfgang (SP); 'Duncan Murdoch'; r-package-devel@r- >project.org >Subject: RES: [R-pkg-devel] RES: MathJax for Rd files > >Thank you so much! It works! >In my example, I've created a simple helper function, preview_rd() > >pre

Re: [R-pkg-devel] RES: MathJax for Rd files

2020-05-13 Thread Viechtbauer, Wolfgang (SP)
L(tools::Rd2HTML(Rd, outfile, macros="/mathjaxr/help/macros/mathjax.Rd")) Best, Wolfgang >-Original Message- >From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] >Sent: Wednesday, 13 May, 2020 19:30 >To: tiagooliv...@gmail.com; Viechtbauer, Wolfgang (SP); 'Helmut Schü

Re: [R-pkg-devel] MathJax for Rd files

2020-05-13 Thread Viechtbauer, Wolfgang (SP)
>Sent: Wednesday, 13 May, 2020 17:01 >To: Viechtbauer, Wolfgang (SP); tiagooliv...@gmail.com; r-package-devel@r- >project.org >Subject: Re: [R-pkg-devel] MathJax for Rd files > >Hi Wolfgang, > >Viechtbauer, Wolfgang (SP) wrote on 2020-05-13 16:53: >> Seems like you ar

Re: [R-pkg-devel] MathJax for Rd files

2020-05-13 Thread Viechtbauer, Wolfgang (SP)
>From: Tiago Olivoto [mailto:tiagooliv...@gmail.com] >Sent: Wednesday, 13 May, 2020 16:20 >To: Viechtbauer, Wolfgang (SP); r-package-devel@r-project.org >Subject: RES: [R-pkg-devel] MathJax for Rd files > >Dear Wolfgang, >Thank you so much for the awesome package >I've i

Re: [R-pkg-devel] MathJax for Rd files

2020-05-13 Thread Viechtbauer, Wolfgang (SP)
Dear Olivoto, There is a package now for this purpose: https://cran.r-project.org/package=mathjaxr https://github.com/wviechtb/mathjaxr Best, Wolfgang >-Original Message- >From: R-package-devel [mailto:r-package-devel-boun...@r-project.org] On >Behalf Of Tiago Olivoto >Sent: Wednesday,

Re: [R-pkg-devel] Require -package.Rd?

2019-09-24 Thread Viechtbauer, Wolfgang (SP)
Hi Georgi, help(package="utils") shows the index, not utils-package.Rd. help(utils) shows utils-package.Rd. Best, Wolfgang -Original Message- From: Georgi Boshnakov [mailto:georgi.boshna...@manchester.ac.uk] Sent: Tuesday, 24 September, 2019 15:02 To: Viechtbauer, Wolfga

Re: [R-pkg-devel] Require -package.Rd?

2019-09-24 Thread Viechtbauer, Wolfgang (SP)
, Wolfgang -Original Message- From: Dirk Eddelbuettel [mailto:e...@debian.org] Sent: Tuesday, 24 September, 2019 14:39 To: joris.m...@ugent.be Cc: Viechtbauer, Wolfgang (SP); r-package-devel@r-project.org Subject: Re: [R-pkg-devel] Require -package.Rd? Wolfgang, Joris, This may not n

[R-pkg-devel] Require -package.Rd?

2019-09-24 Thread Viechtbauer, Wolfgang (SP)
Hi All, When starting to work with an unfamiliar package, one might typically look for vignettes, a paper/book accompanying the package, a package website, and of course the help files themselves, but help(package="") is often not so useful -- such a listing of functions (with titles) might no