Skip to content

Commit

Permalink
Add utils for read.csv() and remove jsonlite as we're using it via httr2
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Jul 19, 2024
1 parent a4879f0 commit d2584fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
Imports:
httr2,
jsonlite
utils
Collate:
'constants.R'
'fetch-repo.R'
Expand Down
2 changes: 1 addition & 1 deletion R/fetch-repo.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fetch_ucirepo <- function(name, id) {

# Parse into dataframe using read.csv
df <- tryCatch({
read.csv(data_url)
utils::read.csv(data_url)
}, error = function(e) {
stop(paste0('Error reading data csv file for "', name, '" dataset (id=', id, ').'))
})
Expand Down

0 comments on commit d2584fd

Please sign in to comment.