Skip to content

Commit

Permalink
deal with tex_pkgs = NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Baumann committed Sep 11, 2023
1 parent de06a1d commit f7e6072
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/find_rev.R
Original file line number Diff line number Diff line change
Expand Up @@ -413,12 +413,15 @@ rPackages)
generate_tex_pkgs <- function(tex_pkgs) {

tex_pkgs <- paste(tex_pkgs, collapse = ' ')

if (!is.null(tex_pkgs)) {

sprintf('tex = (pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-basic %s;
});
',
tex_pkgs)
}
}

flag_tex_pkgs <- if(is.null(tex_pkgs)){
Expand Down
3 changes: 3 additions & 0 deletions dev/build_envs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -497,12 +497,15 @@ rPackages)
generate_tex_pkgs <- function(tex_pkgs) {
tex_pkgs <- paste(tex_pkgs, collapse = ' ')
if (!is.null(tex_pkgs)) {
sprintf('tex = (pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-basic %s;
});
',
tex_pkgs)
}
}
flag_tex_pkgs <- if(is.null(tex_pkgs)){
Expand Down

0 comments on commit f7e6072

Please sign in to comment.