Browse Source

Fix pander.desctable S3method

R >= 4.0.0 changes the lookup behavior for S3method, so simply exporting pander.desctable doesn't work anymore.

pander needs to be attached first to enable declaring an S3method.
desctable now *depends* on pander and automatically attaches pander on load.
tags/0.1.9
Maxime Wack 3 years ago
parent
commit
757f3a200c
3 changed files with 5 additions and 5 deletions
  1. +3
    -3
      DESCRIPTION
  2. +1
    -1
      NAMESPACE
  3. +1
    -1
      man/pander.desctable.Rd

+ 3
- 3
DESCRIPTION View File

@@ -9,7 +9,8 @@ Description: Easily create descriptive and comparative tables.
Tables are produced as data frames/lists of data frames for easy manipulation after creation,
and ready to be saved as csv, or piped to DT::datatable() or pander::pander() to integrate into reports.
Depends:
R (>= 3.2.3)
R (>= 3.2.3),
pander
License: GPL-3
Encoding: UTF-8
LazyData: true
@@ -18,8 +19,7 @@ BugReports: https://github.com/maximewack/desctable/issues
Imports:
dplyr,
DT,
htmltools,
pander
htmltools
Suggests:
knitr,
rmarkdown,


+ 1
- 1
NAMESPACE View File

@@ -5,6 +5,7 @@ S3method(datatable,default)
S3method(datatable,desctable)
S3method(desctable,default)
S3method(desctable,grouped_df)
S3method(pander,desctable)
S3method(print,desctable)
S3method(statify,default)
S3method(statify,formula)
@@ -17,7 +18,6 @@ export(desctable)
export(fisher.test)
export(group_by)
export(is.normal)
export(pander.desctable)
export(percent)
export(statify)
export(stats_auto)


+ 1
- 1
man/pander.desctable.Rd View File

@@ -4,7 +4,7 @@
\alias{pander.desctable}
\title{Pander method for desctable}
\usage{
pander.desctable(
\method{pander}{desctable}(
x = NULL,
digits = 2,
justify = "left",


Loading…
Cancel
Save