/usr/share/doc/r-cran-ggplot2/tests/testthat.R is in r-cran-ggplot2 2.2.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4
library(testthat) library(ggplot2) test_check("ggplot2")