Skip to content

Commit

Permalink
Fix issue #60 (sprintf warnings in R-devel / CRAN check)
Browse files Browse the repository at this point in the history
  • Loading branch information
aryoda committed Oct 27, 2020
1 parent b8d96d6 commit ed1c242
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/log2console.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ log2console <- function(severity.level, msg) {
# different time zones more easily).
log.time <- format(Sys.time(), "%Y-%m-%d %H:%M:%S")

# TODO wrong number of arguments (see issue #60)
res <- sprintf("%s [%s] %s\n", severity.level, log.time, msg, "\n")
res <- sprintf("%s [%s] %s\n", severity.level, log.time, msg)

cat(res)

Expand Down

3 comments on commit ed1c242

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/tryCatchLog.R:177:1: style: functions should have cyclomatic complexity of less than 15, this has 16.

tryCatchLog <- function(expr,
^

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/tryCatchLog.R:177:1: style: functions should have cyclomatic complexity of less than 15, this has 16.

tryCatchLog <- function(expr,
^

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/tryCatchLog.R:177:1: style: functions should have cyclomatic complexity of less than 15, this has 16.

tryCatchLog <- function(expr,
^

Please sign in to comment.