Skip to content

Commit 16dbe00

Browse files
committed
Lowercase cran
1 parent 3d10c4b commit 16dbe00

File tree

12 files changed

+60
-60
lines changed

12 files changed

+60
-60
lines changed

NAMESPACE

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@ S3method(print,package_deps)
1111
S3method(print,packages_info)
1212
S3method(print,platform_info)
1313
S3method(print,session_info)
14-
S3method(remote_download,CRAN_remote)
1514
S3method(remote_download,bitbucket_remote)
15+
S3method(remote_download,cran_remote)
1616
S3method(remote_download,git_remote)
1717
S3method(remote_download,github_remote)
1818
S3method(remote_download,local_remote)
1919
S3method(remote_download,svn_remote)
2020
S3method(remote_download,url_remote)
21-
S3method(remote_metadata,CRAN_remote)
2221
S3method(remote_metadata,bitbucket_remote)
22+
S3method(remote_metadata,cran_remote)
2323
S3method(remote_metadata,git_remote)
2424
S3method(remote_metadata,github_remote)
2525
S3method(remote_metadata,local_remote)
2626
S3method(remote_metadata,package)
2727
S3method(remote_metadata,svn_remote)
2828
S3method(remote_metadata,url_remote)
29-
S3method(remote_package_name,CRAN_remote)
3029
S3method(remote_package_name,bitbucket_remote)
30+
S3method(remote_package_name,cran_remote)
3131
S3method(remote_package_name,git_remote)
3232
S3method(remote_package_name,github_remote)
3333
S3method(remote_package_name,svn_remote)
34-
S3method(remote_sha,CRAN_remote)
3534
S3method(remote_sha,bitbucket_remote)
35+
S3method(remote_sha,cran_remote)
3636
S3method(remote_sha,git_remote)
3737
S3method(remote_sha,github_remote)
3838
S3method(remote_sha,local_remote)
@@ -87,8 +87,8 @@ export(imports_env)
8787
export(in_dir)
8888
export(inst)
8989
export(install)
90-
export(install_CRAN)
9190
export(install_bitbucket)
91+
export(install_cran)
9292
export(install_deps)
9393
export(install_git)
9494
export(install_github)

R/install-CRAN.r renamed to R/install-cran.r

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,49 +9,49 @@
99
#' @family package installation
1010
#' @examples
1111
#' \dontrun{
12-
#' install_CRAN("ggplot2")
13-
#' install_CRAN(c("httpuv", "shiny")
12+
#' install_cran("ggplot2")
13+
#' install_cran(c("httpuv", "shiny")
1414
#' }
15-
install_CRAN <- function(pkgs, repos = getOption("repos"), type = getOption("pkgType"), ..., quiet = FALSE) {
15+
install_cran <- function(pkgs, repos = getOption("repos"), type = getOption("pkgType"), ..., quiet = FALSE) {
1616

17-
remotes <- lapply(pkgs, CRAN_remote, repos = repos, type = type)
17+
remotes <- lapply(pkgs, cran_remote, repos = repos, type = type)
1818

1919
install_remotes(remotes, quiet = quiet, ...)
2020
}
2121

22-
CRAN_remote <- function(pkg, repos, type) {
22+
cran_remote <- function(pkg, repos, type) {
2323

24-
remote("CRAN",
24+
remote("cran",
2525
name = pkg,
2626
repos = repos,
2727
pkg_type = type)
2828
}
2929

3030

3131
#' @export
32-
remote_download.CRAN_remote <- function(x, quiet = FALSE) {
32+
remote_download.cran_remote <- function(x, quiet = FALSE) {
3333
dest_dir <- tempdir()
3434
download.packages(x$name, destdir = dest_dir, repos = x$repos, type = x$pkg_type)[1, 2]
3535
}
3636

3737
#' @export
38-
remote_metadata.CRAN_remote <- function(x, bundle = NULL, source = NULL) {
38+
remote_metadata.cran_remote <- function(x, bundle = NULL, source = NULL) {
3939
version <- read_dcf(file.path(source, "DESCRIPTION"))$Version
4040
list(
41-
RemoteType = "CRAN",
41+
RemoteType = "cran",
4242
RemoteSha = version,
4343
RemoteRepos = deparse(x$repos),
4444
RemotePkgType = x$pkg_type
4545
)
4646
}
4747

4848
#' @export
49-
remote_package_name.CRAN_remote <- function(remote, ...) {
49+
remote_package_name.cran_remote <- function(remote, ...) {
5050
remote$name
5151
}
5252

5353
#' @export
54-
remote_sha.CRAN_remote <- function(remote, url = "https://github.com", ...) {
54+
remote_sha.cran_remote <- function(remote, url = "https://github.com", ...) {
5555
cran <- available_packages(remote$repos, remote$pkg_type)
5656

5757
tryCatch(cran[remote$name, "Version"], error = function(e) NA)

R/install-remote.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ package2remote <- function(x, repos = getOption("repos"), type = getOption("pkgT
123123

124124
# Packages installed with install.packages()
125125
if (!is.null(x$Repository) && x$Repository == "CRAN") {
126-
remote("CRAN",
126+
remote("cran",
127127
name = x$Package,
128128
repos = repos,
129129
pkg_type = type,
@@ -168,7 +168,7 @@ package2remote <- function(x, repos = getOption("repos"), type = getOption("pkgT
168168
repo = x$RemoteRepo),
169169

170170
# packages installed with install_CRAN
171-
CRAN = remote("CRAN",
171+
cran = remote("cran",
172172
name = x$RemoteName,
173173
repos = eval(parse(text = x$RemoteRepos)),
174174
pkg_type = x$RemotePkgType,

man/install.Rd

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/install_bitbucket.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/install_CRAN.Rd renamed to man/install_cran.Rd

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/install_git.Rd

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/install_github.Rd

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/install_svn.Rd

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/install_url.Rd

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)