install_screenshot | R Documentation |
Codes are from URL shown below.
https://superuser.com/questions/75614/take-a-screen-shot-from-command-line-in-windows#answer-1751844
On Mac screencapture
is usually available.
On Linux GNOME desktop use gnome-screenshot
.
If not installed, run sudo apt install gnome-screenshot
.
install_screenshot(bin_dir = "")
bin_dir |
A string of directory to be installed. |
A string of installed directory.
if(interactive()){
# need only on Win
if(get_os() == "win"){
bin_dir <- fs::path_package("screenshot")
# if you want to install another directory
# bin_dir <- "SET_YOUR DIRECTORY"
install_screenshot(bin_dir)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.