From df3a13ce65112a4568584e4846dd69be3ca818d1 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Sun, 22 Sep 2019 14:17:11 +0800 Subject: [PATCH] data.table Depends->Imports --- .gitignore | 5 +++++ DESCRIPTION | 7 ++++--- NAMESPACE | 3 ++- R/bpp_viewer.r | 4 +++- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index e4b351d..2c1c3b3 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,8 @@ /rsc/ /wfx/ /zfx/ + +#artifacts of R CMD build/check +*.Rcheck +*.tar.gz + diff --git a/DESCRIPTION b/DESCRIPTION index 314aeb1..543cabe 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -20,10 +20,11 @@ Description: Basic infrastructure and several algorithms for 1d-4d bin packing The item can be rotated into any orthogonal direction, and no further restrictions implied. License: MIT + file LICENSE -Depends: R (>= 3.0.0), - magrittr, data.table +Depends: R (>= 3.0.2), + magrittr Imports: methods, - Rcpp (>= 0.12.7) + Rcpp (>= 0.12.7), + data.table Suggests: testthat, knitr, rmarkdown, rgl LinkingTo: Rcpp, RcppArmadillo (>= 0.7.400.2.0) diff --git a/NAMESPACE b/NAMESPACE index bcd3dff..20c65b9 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -1,4 +1,5 @@ useDynLib(gbp) +importFrom(data.table, data.table, copy) importFrom(Rcpp, evalCpp) -import(methods, magrittr, data.table, Rcpp) +import(methods, magrittr, Rcpp) exportPattern("^[[:alpha:]]+") diff --git a/R/bpp_viewer.r b/R/bpp_viewer.r index 41d9f64..baea8a3 100644 --- a/R/bpp_viewer.r +++ b/R/bpp_viewer.r @@ -165,6 +165,9 @@ bpp_viewer <- function( #' @family bpp_viewer #' @rdname bpp_viewer_single #' @export +.N = NULL +`:=` = function(...) NULL + bpp_viewer_single <- function( it, bn, title = NULL, subtitle = NULL, it_rgl_control = NULL, bn_rgl_control = NULL, label_it = TRUE, label_bn = TRUE ) { @@ -337,4 +340,3 @@ create_bn_rgl_control <- function() { } #------------------------------------------------------------------------------# -