Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-18 Thread John Fox
Dear Shu Fai, This approach is certainly relevant, and I think it is slightly better than using R.rsp. My preference is still to include the original .Rmd file along with a note to CRAN about the long-running vignette. Thank you, John On 2023-10-17 9:25 p.m., Shu Fai Cheung wrote:

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread Shu Fai Cheung
Please pardon me if I suggest something unrelated below. Many experts have made suggestions that I would also like to consider because I also have a similar issue with some packages. This is an approach I found, for Rmarkdown vignettes: https://www.kloppenborg.ca/2021/06/long-running-vignettes/

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread John Fox
Dear John, Unless I'm mistaken, the *installation* time of the package isn't really at issue. If a user installs a package from a tarball provided by CRAN, the vignettes aren't normally rebuilt. Best, John On 2023-10-17 6:30 p.m., John Harrold wrote: Caution: External email. I ask

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread Duncan Murdoch
And if the vignette claims to help the users, but contains errors? Then it's not very helpful at all. That's what the testing is there to detect. Duncan Murdoch On 17/10/2023 6:30 p.m., John Harrold wrote: I ask myself the question: Who is the vignette for? It does server two purposes. One

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread John Harrold
I ask myself the question: Who is the vignette for? It does server two purposes. One is testing but primarily it's for the users to learn how to use a package. I think the testing is secondary, and if it slows down installation or general usability I'd sacrifice the testing. If it's that

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread Simon Urbanek
Dirk, I think you misread the email - John was was asking specifically about his approach to use REBUILD_CV_VIGNETTES without any caching since that was the original question which no one answered in the thread - and that was what I was answering. The alternative approaches were already

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread Dirk Eddelbuettel
On 18 October 2023 at 08:51, Simon Urbanek wrote: | John, | | the short answer is it won't work (it defeats the purpose of vignettes). Not exactly. Everything is under our (i.e. package author) control, and when we want to replace 'computed' values with cached values we can. All this is

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread John Fox
Hello Duncan, On 2023-10-17 4:43 p.m., Duncan Murdoch wrote: Caution: External email. On 17/10/2023 4:21 p.m., John Fox wrote: Hello Simon, On 2023-10-17 3:51 p.m., Simon Urbanek wrote: Caution: External email. John, the short answer is it won't work (it defeats the purpose of

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread Duncan Murdoch
On 17/10/2023 4:21 p.m., John Fox wrote: Hello Simon, On 2023-10-17 3:51 p.m., Simon Urbanek wrote: Caution: External email. John, the short answer is it won't work (it defeats the purpose of vignettes). Thank you for confirming that. However, this sounds like a purely hypothetical

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread John Fox
Hello Simon, On 2023-10-17 3:51 p.m., Simon Urbanek wrote: Caution: External email. John, the short answer is it won't work (it defeats the purpose of vignettes). Thank you for confirming that. However, this sounds like a purely hypothetical question - CRAN policies allow long-running

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread John Fox
Dear Henrik, I'd already read the R.rsp vignette to which you refer, and, as I said, confirmed that I can use R.rsp to implement static HTML vignettes for our package. Thank you for the confirmation, John On 2023-10-17 3:50 p.m., Henrik Bengtsson wrote: Caution: External email. On Tue,

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread Simon Urbanek
John, the short answer is it won't work (it defeats the purpose of vignettes). However, this sounds like a purely hypothetical question - CRAN policies allow long-running vignettes if they declared. Cheers, Simon > On 18/10/2023, at 3:02 AM, John Fox wrote: > > Hello Dirk, > > Thank you

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread Henrik Bengtsson
On Tue, Oct 17, 2023 at 12:45 PM John Fox wrote: > > Hello Dirk, > > Thank you for the additional information. > > As you suggest, what you did to distribute pre-built PDF vignettes is > quite similar to what R.rsp does, except that the latter also supports > pre-built HTML vignettes, which is

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread John Fox
Hello Dirk, Thank you for the additional information. As you suggest, what you did to distribute pre-built PDF vignettes is quite similar to what R.rsp does, except that the latter also supports pre-built HTML vignettes, which is what I'd prefer to distribute. Since I apparently have that

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread Dirk Eddelbuettel
John, On 17 October 2023 at 10:02, John Fox wrote: | Hello Dirk, | | Thank you (and Kevin and John) for addressing my questions. | | No one directly answered my first question, however, which was whether | the approach that I suggested would work. I guess that the implication | is that it

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread John Fox
Hello Dirk, Thank you (and Kevin and John) for addressing my questions. No one directly answered my first question, however, which was whether the approach that I suggested would work. I guess that the implication is that it won't, but it would be nice to confirm that before I try something

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread Ivan Krylov
Dear Sylvain, В Tue, 17 Oct 2023 09:45:25 + (UTC) "cartograf...@gmail.com" пишет: > I've uploaded cartogRaflow version 1.0.4 with sf package.  > I've submitted yesterday the version 1.0.4 in CRAN and received 2 two > error message because cartogRaflow is archived and use rgeos maptools > in

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-17 Thread Dirk Eddelbuettel
On 16 October 2023 at 10:42, Kevin R Coombes wrote: | Produce a PDF file yourself, then use the "as.is" feature of the R.rsp | package. For completeness, that approach also works directly with Sweave. Described in a blog post by Mark van der Loo in 2019, and used in a number of packages

Re: [R-pkg-devel] Suppressing long-running vignette code in CRAN submission

2023-10-16 Thread Kevin R Coombes
Produce a PDF file yourself, then use the "as.is" feature of the R.rsp package. Specifically, include this line in your DESCRIPTION file: VignetteBuilder: R.rsp Let's say the pdf file is called "myfile.pdf".  Create a file called "myfile.pdf.asis" that contains the vignette instructions. Put