Skip to content

Commit b0970d7

Browse files
authored
Merge pull request #209 from ThinkR-open/branch-0.4.2
Branch 0.4.2
2 parents 40cd8df + 1987865 commit b0970d7

10 files changed

+37
-10
lines changed

.github/workflows/R-CMD-check-devel.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ on:
66
- main
77
- master
88
- tmate
9+
- production-cran
910
pull_request:
1011
branches:
1112
- main
1213
- master
14+
- production-cran
1315

1416
name: R-CMD-check-devel
1517

.github/workflows/R-CMD-check.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ on:
66
- main
77
- master
88
- tmate
9+
- production-cran
910
pull_request:
1011
branches:
1112
- main
1213
- master
14+
- production-cran
1315

1416
name: R-CMD-check
1517

.github/workflows/pkgdown.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches: [main, master]
5+
branches: [main, master, production-cran]
66
tags: ['*']
77

88
name: pkgdown

.github/workflows/test-coverage.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches: [main, master]
5+
branches: [main, master, production-cran]
66
pull_request:
7-
branches: [main, master]
7+
branches: [main, master, production-cran]
88

99
name: test-coverage
1010

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: fusen
22
Title: Build a Package from Rmarkdown Files
3-
Version: 0.4.1
3+
Version: 0.4.2
44
Authors@R: c(
55
person("Sebastien", "Rochette", , "sebastien@thinkr.fr", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0002-1565-9313")),
@@ -49,4 +49,4 @@ Encoding: UTF-8
4949
Language: en-US
5050
LazyData: true
5151
Roxygen: list(markdown = TRUE)
52-
RoxygenNote: 7.2.1
52+
RoxygenNote: 7.2.2

NEWS.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# fusen 0.4.2
2+
3+
## Bug
4+
5+
- Replacement of unexported usethis functions (#205, @ateucher)
6+
17
# fusen 0.4.1
28

39
## New features

R/inflate.R

+5-3
Original file line numberDiff line numberDiff line change
@@ -536,9 +536,11 @@ create_vignette <- function(parsed_tbl, pkg, relative_flat_file, vignette_name,
536536
yaml_options <- flat_yaml[["ast"]][[1]]
537537
# Vignette
538538
# Copied from usethis::use_vignette() to allow to not open vignette created
539-
# usethis:::use_dependency("knitr", "Suggests")
540-
getFromNamespace("use_dependency", "usethis")("knitr", "Suggests")
541-
getFromNamespace("use_description_field", "usethis")("VignetteBuilder", "knitr", overwrite = TRUE)
539+
usethis::use_package("knitr", "Suggests")
540+
# desc <- desc::desc(file = usethis::proj_get())
541+
desc <- desc::desc(file = pkg)
542+
desc$set("VignetteBuilder", "knitr")
543+
desc$write()
542544
usethis::use_git_ignore("inst/doc")
543545

544546
# Vignette head

dev/cran-comments-history.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# v0.4.2
2+
## R CMD check results
3+
4+
0 errors | 0 warnings | 0 note
5+
6+
* This is a patch to fix problem with the new version of {usethis}
7+
* This fixes errors in https://cran.r-project.org/web/checks/check_results_fusen.html
8+
* Tested on rhub, winbuilder and macbuilder
9+
10+
# v0.4.1
11+
## R CMD check results
12+
13+
0 errors | 0 warnings | 0 note
14+
15+
* This is a new release.

tests/testthat/test-inflate-part2.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ dir.create(alltemp)
5656
for (pkgname in c("full", "teaching", "minimal")) {
5757
# No "additional" with create_fusen
5858
# {fusen} steps
59-
path_foosen <- normalize_path_winslash(file.path(alltemp, pkgname))
59+
path_foosen <- normalize_path_winslash(file.path(alltemp, pkgname), mustWork = FALSE)
6060
dev_file <- create_fusen(path_foosen, template = pkgname, open = FALSE)
6161
flat_file <- dev_file[grepl("flat_", dev_file)]
6262

tests/testthat/test-inflate_utils.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ usethis::with_project(dummypackage, {
5858
expect_equal(is_pkg_proj(dummypackage), FALSE)
5959
})
6060

61-
cat("BuildType: Package", file = file.path(dummypackage, "dummy.Rproj"))
61+
cat("BuildType: Package\n", file = file.path(dummypackage, "dummy.Rproj"))
6262

6363
test_that("is_pkg_proj works when rproj is pkg", {
6464
expect_equal(is_pkg_proj(dummypackage), TRUE)

0 commit comments

Comments
 (0)