The REDCapSync package benefits
from storing/caching information about your different projects. The two
most important pieces of information is the project_name
and directory where it’s stored. This is enough information
to be able to find where you have chosen to securely store your files,
load what has already been collected, and then communicate with R to
fetch any new updates. REDCapSync’s ability to store your projects in a
standardized directory is what allows for powerful pipeline tasks.
Importantly, no direct project data or tokens are stored in the
cache!
Using the hoadr package, R finds the standard location
where R typically stores cached package data. For example, on Mac the
location might look like,
“/Users/yourmacname/Library/Caches/R/REDCapSync”.
The exact path can be found with tools::R_user_dir. The
only thing that REDCapSync currently stores in this cache is the
projects data.frame, which can be loaded with
projects$load("PROJECT").
You can clear the entire cache or only delete specific projects. This will only delete REDCapSync’s “knowledge” of project information and location; it will not delete any files from any project directories. If you want to delete files, please do so using your own methods.