contriburl: contrib.url A generic for contrib.url so that...

Description Usage Arguments Examples

Description

contrib.url A generic for contrib.url so that available.packages et al can interact with GRANRepository objects.

Usage

1
2
3
4
5
contrib.url(repos, type = getOption("pkgType"))

## S4 method for signature 'GRANRepository'
contrib.url(repos,
  type = getOption("pkgType"))

Arguments

repos

A repository to extract the contrib url from

type

The type of package repository it is

Examples

1
2
repo = GRANRepository(GithubManifest("gmbecker/fastdigest"), basedir = tempdir())
contrib.url(repo)

Example output

Loading required package: switchr

Attaching package: 'GRANCore'

The following object is masked from 'package:utils':

    available.packages

Warning: failed to download mirrors file (cannot open URL 'https://cran.r-project.org/CRAN_mirrors.csv'); using local file '/usr/share/R/doc/CRAN_mirrors.csv'
Warning messages:
1: In download.file(url, destfile = f, quiet = TRUE) :
  URL 'https://cran.r-project.org/CRAN_mirrors.csv': status was 'Couldn't resolve host name'
2: In read.dcf(con) :
  URL 'http://bioconductor.org/BiocInstaller.dcf': status was 'Couldn't resolve host name'
[1] "file:///work/tmp/tmp/RtmpmcoEVz/current/src/contrib"

GRANCore documentation built on Feb. 4, 2020, 5:06 p.m.