install_tailwindcss_cli {shiny.tailwind}R Documentation

Installs the 'TailwindCSS' CLI

Description

This will download the 'TailwindCSS' standalone CLI to the current working directory.

Usage

install_tailwindcss_cli(overwrite = FALSE, version = "latest", verbose = FALSE)

Arguments

overwrite

if existing installations should be overwritten

version

the version to install, default is latest

verbose

if the version etc should be reported

Details

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⁠.

Value

invisibly the path to the cli program

See Also

compile_tailwindcss

Examples

if (interactive()) {
  install_tailwindcss_cli()
}

[Package shiny.tailwind version 0.2.2 Index]