From 5102143b47949e03be215c02a869455d273a5bef Mon Sep 17 00:00:00 2001 From: Ian Lyttle Date: Sun, 7 Jan 2024 11:34:54 -0600 Subject: [PATCH] remove box_id(), {bit64} dependency --- DESCRIPTION | 1 - R/boxr__internal_misc.R | 9 --------- 2 files changed, 10 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 43eb0eb..00e9cc4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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, diff --git a/R/boxr__internal_misc.R b/R/boxr__internal_misc.R index 89d33f6..ec23b65 100644 --- a/R/boxr__internal_misc.R +++ b/R/boxr__internal_misc.R @@ -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()) {