Skip to content

Commit 68bafa9

Browse files
Fix conditionally missing file paths in article publishing
1 parent f61af16 commit 68bafa9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/publish.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ move_article_web <- function(from, to, volume, issue) {
414414
if(utils::menu(c("Yes", "No")) != 1) {
415415
cli::cli_abort("RJwrapper.tex not found for a legacy article, so article could not be migrated.")
416416
}
417+
article_files <- get_article_files(from)
417418
wrapper_input <- xfun::sans_ext(article_files[xfun::file_ext(article_files)=="tex"])
418419
if(length(wrapper_input) != 1) {
419420
cli::cli_abort("Could not automatically identify appropriate article tex file. Check that exactly 1 input tex file exists for the wrapper.")

0 commit comments

Comments
 (0)