Read the app's version and date (Version and Date in DESCRIPTION)
Source:R/setup.R
kit_app_description.RdThe cloud version, the local run.bat, and the package's run_xxx() all take Version and Date
from DESCRIPTION, so all three show the same thing (file modification times are not used:
unzipping, installing, and deploying all change the mtime).
Details
Search order:
pathis given: read that DESCRIPTION file.packageis already loaded (library(),run_xxx(),load_all()): read the loaded copy.DESCRIPTIONin the working directory, then one and two levels up (in tests the working directory istests/testthat); whenpackageis given, only a file whosePackage:matches counts. The cloud version and run.bat userunApp(folder), the package is not loaded, and this is the copy that gets read.packageis installed (but not loaded): read the installed copy. This comes last because it may be an old version.