inst/testpackages/testpkg0/R/zzz.R

.onLoad <- function(libname, pkgname) {
    ## download.file should not be used here
    if (FALSE) {
        download.file("https://httpbin.org/get", destfile = tempfile())
    }
}

.onAttach <- function(libname, pkgname) {
    if (FALSE) {
        downloader::download("https://httpbin.org/get", destfile = tempfile())
    }
}
Bioconductor/BiocCheck documentation built on Sept. 8, 2024, 11:48 a.m.