Skip to content

Commit

Permalink
Filter out vignettes without output
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jul 2, 2024
1 parent 610611c commit b7a09ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/buildtools.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ latest_tags <- function(repo = '.'){
vignettes_info <- function(repo, pkg, subdir = ""){
repo <- gert::git_open(repo = repo)
vignettes <- as.data.frame(tools::getVignetteInfo(pkg))
vignettes <- vignettes[nchar(vignettes$PDF) > 0,] #workaround Sweave bug
if(nrow(vignettes) > 0){
df <- vignettes[c('File', 'PDF', 'Title')]
names(df) <- c("source", "filename", "title")
Expand Down

0 comments on commit b7a09ff

Please sign in to comment.