Skip to content

Commit 8a3df24

Browse files
authored
Merge pull request #80 from ThinkR-open/sub-cran
chore: clean roxygen doc and test tempfiles
2 parents 739fb16 + 597688d commit 8a3df24

14 files changed

+26
-14
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ tests/testthat/.dockerignore
1919
^cran-comments\.md$
2020
^CRAN-SUBMISSION$
2121
^revdep$
22+
^doc$
23+
^Meta$

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
.RData
44
inst/doc
55
revdep/
6+
/doc/
7+
/Meta/

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ Config/testthat/edition: 3
4343
Encoding: UTF-8
4444
LazyData: true
4545
Roxygen: list(markdown = TRUE)
46-
RoxygenNote: 7.3.1
46+
RoxygenNote: 7.3.2

R/add.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' @importFrom glue glue
22
#' @importFrom attempt warn_if_not
3-
3+
#' @noRd
44
create_dockerfile <- function(
55
FROM = "rocker/r-base",
66
AS = NULL

R/dock_from_desc.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ quote_not_na <- function(x){
6363
#' @importFrom usethis use_build_ignore
6464
#' @importFrom pkgbuild build
6565
#'
66-
#' @export
66+
#' @return Dockerfile
6767
dock_from_desc <- function(
6868
path = "DESCRIPTION",
6969
FROM = paste0(

R/dock_from_renv.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# WARNING - Generated by {fusen} from dev/flat_dock_from_renv.Rmd: do not edit by hand
22

33
#' @importFrom memoise memoise
4+
#' @noRd
45
pkg_sysreqs_mem <- memoise::memoise(
56
pak::pkg_sysreqs
67
)

R/parse-dockerfile.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#' Create a Dockerfile object from a Dockerfile.
55
#'
66
#' @param path path to the Dockerfile
7-
#' @returns A Dockerfile object
7+
#' @return A Dockerfile object
88
#' @export
99
#' @examples
1010
#' parse_dockerfile(system.file("Dockerfile", package = "dockerfiler"))

R/utils.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set_name <- function(x, y) {
44
}
55

66
#' @importFrom cli cat_bullet
7+
#' @noRd
78
cat_green_tick <- function(...) {
89
cat_bullet(
910
...,
@@ -13,6 +14,7 @@ cat_green_tick <- function(...) {
1314
}
1415

1516
#' @importFrom cli cat_bullet
17+
#' @noRd
1618
cat_red_bullet <- function(...) {
1719
cat_bullet(
1820
...,
@@ -22,6 +24,7 @@ cat_red_bullet <- function(...) {
2224
}
2325

2426
#' @importFrom cli cat_bullet
27+
#' @noRd
2528
cat_info <- function(...) {
2629
cat_bullet(
2730
...,

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ knitr::opts_chunk$set(
1616

1717
<!-- badges: start -->
1818
[![R-CMD-check](https://github.com/ThinkR-open/dockerfiler/workflows/R-CMD-check/badge.svg)](https://github.com/ThinkR-open/dockerfiler/actions)
19-
[![Coverage status](https://codecov.io/gh/ThinkR-open/dockerfiler/branch/master/graph/badge.svg)](https://codecov.io/github/ThinkR-open/dockerfiler?branch=master)
19+
[![Coverage status](https://codecov.io/gh/ThinkR-open/dockerfiler/branch/master/graph/badge.svg)](https://app.codecov.io/github/ThinkR-open/dockerfiler?branch=master)
2020
<!-- badges: end -->
2121

2222

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[![R-CMD-check](https://github.com/ThinkR-open/dockerfiler/workflows/R-CMD-check/badge.svg)](https://github.com/ThinkR-open/dockerfiler/actions)
66
[![Coverage
7-
status](https://codecov.io/gh/ThinkR-open/dockerfiler/branch/master/graph/badge.svg)](https://codecov.io/github/ThinkR-open/dockerfiler?branch=master)
7+
status](https://codecov.io/gh/ThinkR-open/dockerfiler/branch/master/graph/badge.svg)](https://app.codecov.io/github/ThinkR-open/dockerfiler?branch=master)
88
<!-- badges: end -->
99

1010
# `{dockerfiler}`

dev/flat_dock_from_renv.Rmd

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ if (!is.null(distro)){
4545

4646
```{r function-dock_from_renv}
4747
#' @importFrom memoise memoise
48+
#' @noRd
4849
pkg_sysreqs_mem <- memoise::memoise(
4950
pak::pkg_sysreqs
5051
)
@@ -411,10 +412,6 @@ skip_if(is_rdevel, "skip on R-devel")
411412
412413
413414
414-
415-
416-
unlink(dir_build)
417-
418415
# repos_as_character ----
419416
test_that("repos_as_character works", {
420417
out <- dockerfiler:::repos_as_character(
@@ -498,6 +495,8 @@ socle_install_version <- "remotes::install_version\\(\"renv\", version = \""
498495
499496
})
500497
498+
unlink(dir_build, recursive = TRUE)
499+
501500
```
502501

503502

man/dockerfiles.Rd

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

tests/testthat/test-dock_from_desc.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,12 @@ withr::with_dir(
109109
)
110110
)
111111

112+
unlink(tpf, recursive = TRUE)
113+
112114

113115

114116
})
115117
}
116118
)
119+
120+
unlink(descdir, recursive = TRUE)

tests/testthat/test-dock_from_renv.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,6 @@ skip_if(is_rdevel, "skip on R-devel")
116116

117117

118118

119-
120-
121-
unlink(dir_build)
122-
123119
# repos_as_character ----
124120
test_that("repos_as_character works", {
125121
out <- dockerfiler:::repos_as_character(
@@ -203,3 +199,5 @@ socle_install_version <- "remotes::install_version\\(\"renv\", version = \""
203199

204200
})
205201

202+
unlink(dir_build, recursive = TRUE)
203+

0 commit comments

Comments
 (0)