NAMESPACE needs to be updated to export setCacheDir and getCacheDir not only import them
importFrom(cacheSweave, "getCacheDir", "setCacheDir") export("getCacheDir", "setCacheDir")
this will avoid the error
R> library(pgfSweave) R>setCacheDir(".cache") Error: could not find function "setCacheDir" Execution halted
NAMESPACE needs to be updated to export setCacheDir and getCacheDir not only import them
importFrom(cacheSweave, "getCacheDir", "setCacheDir") export("getCacheDir", "setCacheDir")
this will avoid the error
R> library(pgfSweave) R>setCacheDir(".cache") Error: could not find function "setCacheDir" Execution halted