install_tailwindcss_cli | R Documentation |
This will download the 'TailwindCSS' standalone CLI to the current working directory.
install_tailwindcss_cli(overwrite = FALSE, version = "latest", verbose = FALSE)
overwrite |
if existing installations should be overwritten |
version |
the version to install, default is latest |
verbose |
if the version etc should be reported |
This will download the 'TailwindCSS' standalone CLI to the current working directory. See here for details on the standalone CLI. This saves you from having to install 'node.js'.
On the mac, after installing the CLI, you need to make sure that the file
is executable to run it. For Mac, the easiest way to do so is to ensure
you're in the correct working directory in R and type
system("chmod +x tailwindcss")
.
Alternatively, you could cd
to the directory in terminal and then run
chmod +x tailwindcss
.
invisibly the path to the cli program
compile_tailwindcss
if (interactive()) { install_tailwindcss_cli() }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.