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)
}
}
Run the code above in your browser using DataLab