@@ -18,28 +18,28 @@ knitr::opts_chunk$set(
18
18
)
19
19
20
20
is_ghactions <- identical(Sys.getenv("CI"), "true") && identical(Sys.getenv("GH_ACTIONS_KWB_R"), TRUE)
21
-
21
+ local <- FALSE
22
22
```
23
23
24
24
# Get Metadata for All KWB-R Github Repos
25
25
26
26
For all Github repos also includes non R packages
27
27
28
- ``` {r, eval = TRUE }
28
+ ``` {r, eval = is_ghactions }
29
29
pkgmeta::write_github_repos_json()
30
30
```
31
31
32
32
# Get Public KWB-R Github Package
33
33
34
34
Now limit only "public" KWB-R repos which are R packages.
35
35
36
- ``` {r, eval = TRUE }
36
+ ``` {r, eval = is_ghactions }
37
37
pkgs <- pkgmeta::get_github_packages()
38
38
```
39
39
40
40
# Define paths
41
41
42
- ``` {r, eval = !is_ghactions }
42
+ ``` {r, eval = local }
43
43
# Define paths and resolve placeholders
44
44
paths_list <- list(
45
45
root_dir = tempdir(),
@@ -59,7 +59,7 @@ paths <- kwb.utils::resolve(paths_list, root_dir = tempdir())
59
59
60
60
in own library required for "codemetar" and "pkgnet" reports
61
61
62
- ``` {r, echo = !is_ghactions , eval = !is_ghactions }
62
+ ``` {r, echo = FALSE , eval = local }
63
63
fs::dir_create(paths$pkglib, recursive = TRUE)
64
64
65
65
withr::with_libpaths(new = paths$pkglib, code = {
@@ -90,7 +90,7 @@ pkgmeta::travis_pkg_install_script()
90
90
91
91
required for pkgnet "covr":
92
92
93
- ``` {r, echo = !is_ghactions , eval = !is_ghactions }
93
+ ``` {r, echo = TRUE , eval = local }
94
94
95
95
fs::dir_create(
96
96
path = c(paths$pkgsource_zip_dir, paths$pkgsource_unzip_dir),
@@ -121,7 +121,7 @@ invisible(lapply(zipfiles, function(x) {
121
121
122
122
Generating "codemetar.json" file
123
123
124
- ``` {r, echo = !is_ghactions , eval = !is_ghactions }
124
+ ``` {r, echo = TRUE , eval = local }
125
125
pkgs <- pkgmeta::get_github_packages()
126
126
127
127
codemeta <- pkgmeta::create_pkg_codemeta(pkgs, libpath = paths$pkglib)
@@ -149,7 +149,7 @@ pkgmeta::write_pkg_codemeta_json(codemeta)
149
149
150
150
Create Reports with "pkgnet
151
151
152
- ``` {r, echo = !is_ghactions , eval = !is_ghactions }
152
+ ``` {r, echo = TRUE , eval = local }
153
153
fs::dir_create(paths$pkgnet_dir, recurse = TRUE)
154
154
155
155
withr::with_libpaths(new = c(paths$pkglib, .libPaths()),
0 commit comments