repos_auth: CRAN-style Repository Authentication Credentials

Description Usage Arguments See Also

Description

Gets/sets authentication credentials for CRAN-style.

Usage

1
2
repos_auth(..., save = FALSE, cache = NULL, exact = FALSE,
  .netrc = NULL)

Arguments

...

repository keys or credential specifications

save

indicates if the new credentials are to be saved on disk, by updating in the .netrc file, or in a cache – which expires at the end of the R session. It can also be a character string, which then specifies the path where to save the result (cached entries are not written to disk).

Use save="" to print to the console.

cache

specifies how the temporary cached credentials should be loaded:

  • NULL loads both the cache and netrc data, with cache override matching netrc credentials;

  • TRUE loads only the cache data;

  • FALSE loads only the netrc data.

The special value cache = NA will delete the cache, prior to any other operation.

exact

logical that indicates if the the repository keys should be matched exactly. If FALSE, then keys are matched independently of possible trailing path specification.

.netrc

path or connection to a netrc file, which is looked up for matching repository/host entries. Default is to look for file '.netrc' in the user's home directory.

Repository and host credential entries are defined in an netrc file format (see read_netrc for more details).

Repository shortcut keys start a '@', e.g., '@myRepo/path/to/repo' and are substituted by the URL 'http://<login>:<password>@<machine><path>/path/to/repo', where <machine>, <path>, <login> and <password> are taken from the matched netrc specification.

Regular hosts are also matched against the netrc specification to add credentials if necessary.

See Also

Other auth: read_netrc, repos_url


renozao/repotools documentation built on May 27, 2019, 5:53 a.m.