Description Usage Arguments Value See Also Examples
View source: R/compress_images_setup.R
Downloads and installs 'compress-images' (a "JavaScript" tool for image compression) in the user data directory.
1 | compress_images_install(force = FALSE, verbose = TRUE)
|
force |
Whether to force to install (override) 'compress-images'. |
verbose |
should a log be printed in the console, default to TRUE. |
a single logical value, FALSE if the operation failed, TRUE otherwise.
a single logical value, TRUE if success.
Other tools for 'compress-images':
compress_images_available()
,
compress_images_uninstall()
1 2 3 4 5 | library(locatexec)
if(exec_available("node") && !compress_images_available()){
compress_images_install()
compress_images_uninstall()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.