format_js | R Documentation |
Runs prettier on JavaScript files in app/js
directory.
Requires Node.js installed.
format_js(fix = TRUE)
fix |
If |
You can prevent prettier from formatting a given chunk of your code by adding a special comment:
// prettier-ignore
Read more about ignoring code.
None. This function is called for side effects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.