Editing .Rproj files from the console.

How does one add additional configurations to the .Rproj file without using the popup dialog box once you click it? For example, I want to specify a project to build bookdown outputs. How can I add the line

BuildType: Website

using code to the .Rproj file, and not using the dialog box and choosing "website" under the Build tab?

There isn't really an API for modifying .Rproj files programmatically, but they are just text (DCF) files, so you can edit them as regular text files if required.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.