Takes screenshot is very fast if the code is executed on a server at localhost, less than a second (around 400-500ms):
localhost
private R