Skip to content

Commit

Permalink
avoid nesting paste() inside stop()
Browse files Browse the repository at this point in the history
I want to wrap lines inside `sprintf()`

ref #497
  • Loading branch information
wibeasley committed Jul 13, 2023
1 parent 1449042 commit 56f11f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/redcap-metadata-coltypes.R
Original file line number Diff line number Diff line change
Expand Up @@ -306,15 +306,15 @@ redcap_metadata_internal <- function(

if (is.na(d_proj$has_repeating_instruments_or_events[1])) { # nocov start
# Don't test coverage for this block b/c it only executes for old versions of REDCap
stop(
error_message <-
sprintf(
paste(
"The REDCap instance at %s failed to report if the",
"current project uses repeatable instruments or events."
),
redcap_uri
)
)
stop(error_message)
} # nocov end

if (d_proj$has_repeating_instruments_or_events[1]) {
Expand Down

0 comments on commit 56f11f9

Please sign in to comment.