Dan,
@Dan@aus.social avatar

So another @rstats wonder!

You can render to epub - so great that resources like https://r4ds.had.co.nz/index.html that are actually quarto books can be rendered as an epub just by changing the .yaml format

(I realised recently you can also do this with bookdown which is amazing)

absolutely going to go and make a donation at https://www.doc.govt.nz/kakapo-donate

Dan,
@Dan@aus.social avatar

@rstats one thing I did find a little frustrating is that there were a handful of pacakges I didn't have installed and rendering kept halting.

Is there an established way to search through a large number of files to find and install packages?

There are about 49 files that likely include pacakges so didn't really want to do it manually - here was my hacky solution

joeroe,
@joeroe@archaeo.social avatar

@Dan @rstats The R4DS repository includes a DESCRIPTION file listing the book's dependencies so, assuming that's complete, you can just use devtools::install_deps(). Otherwise, try renv::init(), which searches through the files.

lydz_gibby,
@lydz_gibby@fosstodon.org avatar

@Dan @rstats I don't quite follow. Do you mean that if I fork the source code, go into the _quarto.yml and change the project type, I can get an ebook instead? If so, I have a lot of books to download. 🤩

Dan,
@Dan@aus.social avatar

@lydz_gibby @rstats yep absolutely! Though r4ds rendered as epub won't open in kindle it looks good in my other epub reader.

Advanced R on the other hand, I recently rendered to epub with book down and opens in kindle without any mucking about.

I think it's to do with CSS but haven't tried too hard to figure out

lydz_gibby,
@lydz_gibby@fosstodon.org avatar

@Dan @rstats awesome. Thank you!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rstats@a.gup.pe
  • ngwrru68w68
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • Youngstown
  • everett
  • slotface
  • rosin
  • osvaldo12
  • mdbf
  • kavyap
  • cubers
  • megavids
  • modclub
  • normalnudes
  • tester
  • khanakhh
  • Durango
  • ethstaker
  • tacticalgear
  • Leos
  • provamag3
  • anitta
  • cisconetworking
  • JUstTest
  • lostlight
  • All magazines