Marco
Marco

Reputation: 2817

How to initialize quarto panel in RStudio for an existing project?

I wonder how one usually creates a quarto-website-github project.

I can either choose to create a version control (e.g. github) project or a quarto project.

When I create a version-control-github project, I automatically have the git Render button.

When I create a quarto-website project, I automatically have the Render button for quarto websites.

How to get both?

enter image description here

Upvotes: 3

Views: 357

Answers (1)

Marco
Marco

Reputation: 2817

I found a good sequence. It's best to create a repo on GitHub (can be empty), then start a version-control project from GitHub and synchronize that. Copy or create all necessary files for a bookdown (_output.yml, _bookdown.yml etc.) or quarto (_quarto.yml etc.) project manually. Then simply restart RStudio. The panel bottons will appear after restart.

Then we have both, for a bookdown like this

enter image description here

and for a quarto website like that

enter image description here

Although I don't understand why this is not the case from the start. Why can't we initialize a bookdown-git-project or a quarto-git-project.

Upvotes: 4

Related Questions