# NOT RUN {
testthat::with_mock(
`isInteractive` = function() {browser(); TRUE},
{
tmpdir <- tempdir()
aa <- Cache(rnorm, 1, cacheRepo = tmpdir, userTags = "something2")
# Test clearCache -- has an internal isInteractive() call
clearCache(tmpdir, ask = FALSE)
})
# }
Run the code above in your browser using DataLab