Skip to content

Commit b12e4d0

Browse files
authored
Add more information regarding packages implementing dplyr methods. (#17)
* Add more information regarding packages implementing dplyr methods. * Reword
1 parent 7df94b5 commit b12e4d0

5 files changed

Lines changed: 28 additions & 31 deletions

File tree

editbl/R/eDT.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ eDTOutput <- function(id,...) {
5858
#' @details All arguments except 'id' and 'env' can be normal objects or reactive objects.
5959
#'
6060
#' @param id `character(1)` module id
61-
#' @param data `tbl`. The function will automatically cast to tbl if needed.
61+
#' @param data `tbl`. When using non-standard tibble objects, install the required package implementing specific methods.
62+
#' (`data.table`: dtplyr, spark: sparklyr, generic database: dbplyr,...).
63+
#' While other tabular objects like `data.frame` are supported, explicitly casting to `tbl` is recommended.
6264
#' @inheritParams DT::datatable
6365
#' @param keys `character`. Defaults to all columns under the assumption that at least every row is unique.
6466
#' @param format function accepting and returning a \code{\link[DT]{datatable}}

editbl/R/utils.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ castToTbl <- function(data){
126126
if(dplyr::is.tbl(data)){
127127
result <- data
128128
} else if(inherits(data, 'data.table')){
129+
requireNamespace('dtplyr')
129130
result <- dtplyr::lazy_dt(data)
130131
} else {
131132
result <- dplyr::as_tibble(data)

editbl/man/eDT.Rd

Lines changed: 14 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

editbl/man/standardizeArgument_colnames.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

editbl/man/standardizeArgument_editable.Rd

Lines changed: 6 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)