R/zzz.R

if(.Platform$OS.type == "windows") {
    .onLoad <- function(libname, pkgname) {
        ## The user might already have set this.
        co <- getOption("RCurlOptions")
        if (!"cainfo" %in% names(co)) {
            ## Might check env variable CURL_CA_BUNDLE, which is normally
            ## set on Windows for R >= 3.2.0
            co$cainfo <- file.path(libname, pkgname, "etc", "ca-bundle.crt")
            options(RCurlOptions = co)
        }
    }
}

Try the RCurl package in your browser

Any scripts or data that you put into this service are public.

RCurl documentation built on Nov. 3, 2023, 1:09 a.m.