Skip to content

Commit

Permalink
update minimum rio version, remove unneeded logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ijlyttle committed Jan 6, 2024
1 parent 8977068 commit 12d4a48
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: boxr
Type: Package
Title: Interface for the 'Box.com API'
Version: 0.3.6.9005
Version: 0.3.6.9006
Authors@R: c(
person("Brendan", "Rocks", email = "[email protected]",
role = c("aut")),
Expand Down Expand Up @@ -44,7 +44,7 @@ Imports:
magrittr,
mime,
purrr,
rio,
rio (>= 0.5.18),
rlang,
stats,
stringr,
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Internal

* update minimum version of rio package to reflect newer treatment of JSON files. (#261)

* update documentation to reflect updates to rio package. (#242, @chainsawriot)

* update maintainer's email address. (#248)
Expand Down
9 changes: 0 additions & 9 deletions R/boxr_read.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,6 @@ box_read <- function(file_id, type = NULL, version_id = NULL,
cont <- read_fun(new_name, ...)
}

# this code comment is old (i think) and maybe worth revisiting was rio goes to CRAN (NCD 2019-11-01)
# \/
# rio is imposing the data.frame class on .json files, which isn't lolz.
# So, if it's classed as a data.frame but doesn't have the 'row.names'
# attribute, unclass it
if ("data.frame" %in% class(cont) & is.null(attr(cont, "row.names"))) {
cont <- unclass(cont)
}

# Delete the tempfile
unlink(temp_file, force = TRUE)

Expand Down

0 comments on commit 12d4a48

Please sign in to comment.