Re: [R-pkg-devel] how to use pkgdown::build_site() with a project using S7 with a specialized plot()?

2024-01-03 Thread Daniel Kelley
Answering my own question here ... The problem was that I was using mooringS7 <- S7::new_class("mooring", ETC instead of mooringS7 <- S7::new_class("mooringS7", ETC With the change to the latter, all works fine now. Thanks very much to all who have helped, so generously and

Re: [R-pkg-devel] how to use pkgdown::build_site() with a project using S7 with a specialized plot()?

2024-01-03 Thread Daniel Kelley
Oh, Hadley, I'm sorry to bother you whilst you're on vacation. Please don't take too much time on. I'm certainly not in a rush at all. To answer your question, yes, I rebuilt the documentation (within RStudio, via the 'More/Document' scheme) and it still fails. I wonder if I need to do a

Re: [R-pkg-devel] how to use pkgdown::build_site() with a project using S7 with a specialized plot()?

2024-01-03 Thread Hadley Wickham
Did you re-document? You’ll need that to correctly regenerate the .Rd, I think. (Sorry I’m on vacation so I’m guessing at stuff from my phone) Hadley On Thursday, January 4, 2024, Daniel Kelley wrote: > Thanks. I installed the latest roxygen2 and pkgdown, and tried to make a > simple reprex >

Re: [R-pkg-devel] how to use pkgdown::build_site() with a project using S7 with a specialized plot()?

2024-01-03 Thread Daniel Kelley
Thanks. I installed the latest roxygen2 and pkgdown, and tried to make a simple reprex git clone https://github.com/dankelley/mooring.git cd mooring git checkout S7 Rscript -e "pkgdown::clean_site()" Rscript -e "pkgdown::build_site()" but it still fails. (Full output is below, for

Re: [R-pkg-devel] how to use pkgdown::build_site() with a project using S7 with a specialized plot()?

2024-01-03 Thread Hadley Wickham
This bug is fixed in the dev version (I don’t remember off the top of my head in which of pkgdown and roxygen2 you need but it might be both). I’m planning CRAN updates for both in the near future. Hadley On Thursday, January 4, 2024, Daniel Kelley wrote: > # Question > > Is there an online

Re: [R-pkg-devel] how to use pkgdown::build_site() with a project using S7 with a specialized plot()?

2024-01-03 Thread Ivan Krylov
On Wed, 3 Jan 2024 13:34:27 + Daniel Kelley wrote: > Error: > ! in callr subprocess. > Caused by error in `map2(.x, vec_index(.x), .f, ...)`: > ! In index: 1. Interesting that the actual error messages seem to be completely empty. By chance (I was searching for "rlang See `$stdout` for

[R-pkg-devel] how to use pkgdown::build_site() with a project using S7 with a specialized plot()?

2024-01-03 Thread Daniel Kelley
# Question Is there an online example online of specializing `plot()` for S7 objects, such that `pkgdown::build_site()` will produce webpages? I ask because I find lots of users (of other packages) tend to consult websites made with pkgdown, rather than using the online help within R. I