Skip to content

Commit

Permalink
Merge branch 'main' into 2126_unify_joined
Browse files Browse the repository at this point in the history
  • Loading branch information
bms63 authored Nov 2, 2023
2 parents 11f572b + c0ab881 commit 0c069d5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vignettes/articles/website-versions.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@ base_url <-
"https://pharmaverse.github.io/admiral/" # include the trailing backslash!
# get list of all files in the `gh-pages` branch
df_all_files <- gert::git_ls(ref = "gh-pages")
df_all_files <- tryCatch(gert::git_ls(ref = "gh-pages"), error = function(x) FALSE)
# if a local user (not on CI) does not have a copy of the `gh-pages` branch, exit silently
if (!isTRUE(as.logical(Sys.getenv("CI"))) && isFALSE(df_all_files)) {
knitr::knit_exit()
}
```

```{r include=FALSE}
# extract all folders in the root of the branch
all_folders <-
sub("/.*", "", df_all_files$path)[grepl(
Expand Down

0 comments on commit 0c069d5

Please sign in to comment.