Skip to content

Commit

Permalink
Enabling lintr test on push
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviaAB committed Jan 11, 2024
1 parent 56a256c commit e98142f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/lint-changed-files.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

Expand Down
2 changes: 1 addition & 1 deletion R/data_import.R
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ import_smetadata_csv_factory <- function(files,

res <- lapply(df, function(x) { ## apply to each column
if (is.character(x)) {
## Detect if any non-ascii characters in column
## Detect if any non-ascii characters
non_ascii_indx <- which(stringr::str_detect(x, "[^[:ascii:]]"))

if (length(non_ascii_indx)) {
Expand Down

0 comments on commit e98142f

Please sign in to comment.