R/pkgconfig.R

Defines functions .pkgLd .pkgMk .build_path

.build_path <- 
    function(path)
{
    if (.Platform$OS.type == "windows") {
        path <- normalizePath(path)
        if (grepl(' ', path, fixed=TRUE))
            path <- utils::shortPathName(path)
        path <- gsub("\\\\", "/", path)
    }
    path
}

.pkgMk <-
    function()
{
    if (.Platform$OS.type != "windows")
        stop(".pkgMk() expects windows operating system")
    path <- system.file(package="Rsamtools", "usretc", .Platform$r_arch,
                        "Rsamtools.mk", mustWork=TRUE)
    .build_path(path)
}

.pkgLd <-
    function()
{
    path <- system.file(package="Rsamtools", "usrlib", .Platform$r_arch,
                        mustWork=TRUE)
    .build_path(path)
}

Try the Rsamtools package in your browser

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

Rsamtools documentation built on Nov. 8, 2020, 8:11 p.m.