Either the key or the URL (with POST and payload) must be provided.
Usage
omnipath_cache_move_in(
path,
key = NULL,
version = NULL,
url = NULL,
post = NULL,
payload = NULL,
keep_original = FALSE
)Examples
path <- tempfile()
saveRDS(rnorm(100), file = path)
omnipath_cache_move_in(path, url = 'the_download_address')
# basic example of moving a file to the cache:
bioc_url <- 'https://bioconductor.org/'
html_file <- tempfile(fileext = '.html')
curl::curl_fetch_disk(bioc_url, html_file)
omnipath_cache_move_in(path = html_file, url = bioc_url)
omnipath_cache_remove(url = bioc_url) # cleaning up