Skip to content

Commit 65e9ddb

Browse files
authored
fix: only copy network file on exists (#57)
1 parent b56b989 commit 65e9ddb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

R/check.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ octo_start_group("Running Pkgcheck...")
2929
pkgstats::ctags_install(sudo = TRUE)
3030

3131
check <- pkgcheck()
32-
fs::file_copy(check$info$network_file, file_dir) %>%
33-
octo_set_output("visnet_path")
32+
33+
if (fs::file_exists (check$info$network_file)) {
34+
fs::file_copy(check$info$network_file, file_dir) %>%
35+
octo_set_output("visnet_path")
36+
}
3437

3538
md <- checks_to_markdown(check, render = FALSE)
3639
s_break <- md %>%

0 commit comments

Comments
 (0)