Skip to content

Commit

Permalink
remove box_id(), {bit64} dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ijlyttle committed Jan 7, 2024
1 parent dbd0e75 commit 5102143
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ Description: An R interface for the remote file hosting service 'Box'
License: MIT + file LICENSE
Imports:
assertthat,
bit64,
dplyr,
digest,
fs,
Expand Down
9 changes: 0 additions & 9 deletions R/boxr__internal_misc.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ box_filename <- function(x) {
x
}


# Validate ids supplied
box_id <- function(x) {
if (!is.null(x) && any(is.na(bit64::as.integer64(x))))
stop("box.com API ids must be (coercible to) 64-bit integers")
if (!is.null(x))
return(as.character(bit64::as.integer64(x)))
}

# ref: https://rlang.r-lib.org/reference/topic-error-call.html
as_box_id <- function(x, arg = rlang::caller_arg(x),
call = rlang::caller_env()) {
Expand Down

0 comments on commit 5102143

Please sign in to comment.