Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Shapiro <[email protected]>
  • Loading branch information
sjspielman and jashapiro authored Jun 6, 2024
1 parent 5ae842d commit 309cc12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LABEL org.opencontainers.image.authors="CCDL [email protected]"
LABEL org.opencontainers.image.source="https://github.com/AlexsLemonade/spellcheck/tree/main"

# install R package dependencies from CRAN
RUN Rscript -e "install.packages(c('spelling', 'readr', 'purrr', 'dplyr', 'tidyr'))"
RUN Rscript -e "install.packages(c('dplyr', 'purrr', 'readr', 'spelling', 'tidyr'))"

# add spell check script and make it executable
COPY spell-check.R /spell-check.R
Expand Down
2 changes: 1 addition & 1 deletion spell-check.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spelling_errors <- file_list |>
purrr::imap(
\(files, path) {
spelling::spell_check_files(files, ignore = dictionary) |>
data.frame() |>
data.frame() |>
tidyr::unnest(cols = found) |>
tidyr::separate(found, into = c("file", "lines"), sep = ":") |>
dplyr::mutate(file = file.path(path, file))
Expand Down

0 comments on commit 309cc12

Please sign in to comment.