Skip to content

Commit

Permalink
Show output of roxygenize (#206)
Browse files Browse the repository at this point in the history
Shows the log output of `roxygenize`.

---------

Signed-off-by: cicdguy <[email protected]>
  • Loading branch information
cicdguy authored Jan 24, 2024
1 parent 1363fb3 commit bcb6442
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/roxygen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ jobs:
sink()
sink(type = "message")
logs <- readLines(logfile)
cat("🪵 Log output of 'roxygen2::roxygenize()':\n")
system2("cat", logfile)
error_marker <- grep("Error:", logs)
warnings_marker <- grep("Warning message", logs)
if (length(warnings_marker) > 0) {
Expand Down Expand Up @@ -163,7 +165,7 @@ jobs:
then {
echo -e "\n💻 Please rerun the following command on your workstation and push your changes"
echo "--------------------------------------------------------------------"
echo "roxygen2::roxygenize('.', roclets = c('rd', 'collate', 'namespace'))"
echo "roxygen2::roxygenize('.')"
echo "--------------------------------------------------------------------"
echo "ℹ roxygen2 version that was used in this workflow: $ROXYGEN_VERSION"
echo "🙏 Please ensure that the 'RoxygenNote' field in the DESCRIPTION file matches this version"
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ Encoding: UTF-8
Language: en-US
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.0

0 comments on commit bcb6442

Please sign in to comment.