c2d4u.tools: c2d4u Utilities

Description Usage Arguments Value Future Work See Also Examples

Description

c2d4u is a repository of precompiled R packages for Ubuntu. Using it through the operating system commands typically installs packages to the host's site library, which may require root. Instead, these functions can be run from and packages installed to the user library.

Usage

1
2
3
4
5
6
7
8
9
config(sources.list, lists, cache)

update(...)

find(pkg, ...)

show(pkg, ...)

install(pkg, ..., target = .libPaths()[1])

Arguments

sources.list

The debian sources.list file with the URL of the PPA.

lists

A directory to store apt listings.

cache

A directory to cache apt operations.

...

options for config.

pkg

a package name. Note: Ubuntu packages typically have a "r-cran-" prefix.

target

the library to install in to.

Value

config - a set of CLI flags for apt.

update, show and find - a conventional UNIX return code (0 for success), invisibly.

install - a logical for each file copied, invisibly (like file.copy).

Future Work

See Also

https://launchpad.net/~c2d4u.team

Examples

1
2
3
4
5
6
7
8
## Not run: 
  # Only relevant to Ubuntu users
  c2d4u.tools::update()
  c2d4u.tools::find("randomizr")
  c2d4u.tools::show("r-cran-randomizr")
  c2d4u.tools::install("r-cran-randomizr")

## End(Not run)

c2d4u.tools documentation built on June 17, 2021, 9:07 a.m.