This is a helper function which returns arguments to be passed to Chrome. This function tests whether the code is running on shinyapps and returns the appropriate Chrome extra arguments. Source: https://github.com/RLesur/chrome_print_shiny
Usage
chrome_extra_args(default_args = c("--disable-gpu"))