Skip to content

Commit

Permalink
Skips translation if no pertinent content is found
Browse files Browse the repository at this point in the history
  • Loading branch information
edgararuiz committed Dec 9, 2024
1 parent adf673e commit 89934db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/translate-roxygen.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ translate_roxygen_imp <- function(path,
pkg_env <- env_package(pkg_path)
}
current_roxy <- roxy_comments(path)
if(is.null(current_roxy)) {
cli_inform("[{no}/{of}] {path} --> [Skipping, no content]")
return(invisible())
}
dir_create(dir)
rd_path <- path(dir, path_file(path))
if (file_exists(rd_path)) {
Expand Down

0 comments on commit 89934db

Please sign in to comment.