Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes on Changing from Rmarkdown/Bookdown to Quarto | Credibly Curious #66

Open
utterances-bot opened this issue Apr 11, 2022 · 12 comments

Comments

@utterances-bot
Copy link

Notes on Changing from Rmarkdown/Bookdown to Quarto | Credibly Curious

https://www.njtierney.com/post/2022/04/11/rmd-to-qmd/

Copy link

Great post. It would be nice if you guide how to change Rmarkdown/blogdown to quarto. Regards

@njtierney
Copy link
Collaborator

Thanks! Yes I think changing a website over from blogdown is on the cards, but it might be a while until I have the time.

Copy link

aito123 commented May 28, 2022

Nice post, i'm also exploring quarto to create my thesis in MS Word. Do you know if its possible to create a cover for a quarto boook in MS Word? How do you plan to insert your book cover in the printed edition of the book? let me know, thanks

@njtierney
Copy link
Collaborator

Hey there,

Thanks!

I haven't done this myself, as I haven't had a book be printed before. But searching the quarto website, it looks like there is a way to do this: https://quarto.org/docs/books/book-output.html#cover-images

Looking at the R4DS book, they do something with cover images here: https://github.com/hadley/r4ds/search?q=cover

If you've got other questions, a good place to ask is on https://community.rstudio.com/ - lots of people who know a lot more about quarto are there :) - I'm happy to help, but those folks might be able to help you faster than me :)

Copy link

To address the "build" problem: open the myprojectname.Rproj file and delete the line "BuildType: site" (this tells RStudio that you are building a [rmarkdown]website).
Next close and open the project. When RStudio restarts, it should recognise the "quarto" project, and you should see "Render Book" and "Preview Book" in your build pane.

Copy link

hao203 commented Oct 16, 2022

There are lots of bugs in Quarto. I don't know why create that module. It is really unnecessary. R markdown is enough.

Copy link

This blog post is exactly what I was looking for. Soon or later I'll convert Reeborg bookdown[1] into Quarto Book. Thank you so much.
[1]: https://github.com/statkclee/reeborg

Copy link

fjodor commented Jan 23, 2023

Thank you for this detailed post! Great to see early adopters sharing their experiences. It took me longer to get started ... Your post, along with a few others, inspired me to a video. Credits given in description and on penultimate slide.

R Markdown Users: Why you should switch to Quarto NOW
https://youtu.be/mGNW8jl7RMc

Copy link

I also had the problem that when I changed an RStudio project from Rmarkdown to quarto, the build tab attempted to use Rmarkdown. I finally deleted the project.Rproj file, and created a new RStudio project from the project directory. That seemed to change the build tab to use quarto.

Copy link

ejjunju commented Feb 7, 2023

How do i make my quarto document save the figures generated in the chucnks to a folder?

@rainer-rq-koelle
Copy link

rainer-rq-koelle commented Feb 15, 2023 via email

Copy link
Collaborator

njtierney commented Nov 22, 2023

Heya @ejjunju and @rainer-rq-koelle

You don't need to use ggsave() inside an r chunk - your plots are saved when you render the document, but the catch is that you need to name the code chunk, and also set some YAML options:

---
title: "Your report"
output:
  html_document:
    keep_md: true
---
```{r gg-mtcars}
ggplot(mtcars, aes(disp, mpg)) + geom_point()
```

See https://rmd4sci.njtierney.com/customising-your-figures#keeping-your-figures for more details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants