Code
use_air()
Message
v Creating 'air.toml'.
v Adding "^[\\.]?air\\.toml$" to '.Rbuildignore'.
v Creating '.vscode/'.
v Adding "^\\.vscode$" to '.Rbuildignore'.
v Creating '.vscode/settings.json'.
v Creating '.vscode/extensions.json'.
[ ] Read the Air editors guide (<https://posit-dev.github.io/air/editors.html>)
to learn how to invoke Air in your preferred editor.
Code
writeLines(read_utf8(proj_path(".vscode", "settings.json")))
Output
{
"[r]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "Posit.air-vscode"
}
}
Code
writeLines(read_utf8(proj_path(".vscode", "extensions.json")))
Output
{
"recommendations": [
"Posit.air-vscode"
]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.