Skip to content

Commit

Permalink
fix documentation closes #17
Browse files Browse the repository at this point in the history
  • Loading branch information
maxheld83 committed Jan 28, 2021
1 parent bdac4b9 commit 6c73203
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 22 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
S3method(as.character,biblids_doi)
S3method(format,biblids_doi)
S3method(knitr::knit_print,biblids_doi)
S3method(pillar::pillar_shaft,biblids_doi)
S3method(vec_ptype_abbr,biblids_doi)
S3method(vec_ptype_full,biblids_doi)
export(doi)
Expand All @@ -12,6 +13,5 @@ export(doiEntryUI)
export(doi_examples)
export(doi_patterns)
export(is_doi)
export(pillar_shaft.biblids_doi)
importFrom(vctrs,vec_ptype_abbr)
importFrom(vctrs,vec_ptype_full)
4 changes: 3 additions & 1 deletion R/doi.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ format.biblids_doi <- function(x, ...) {

# exported in zzz.R if pillar is available
#' @describeIn doi pretty printing in [tibble::tibble()]
#' @export
#' @exportS3Method pillar::pillar_shaft
#' @method pillar_shaft biblids_doi
#' @examples
#' # there is extra pretty printing inside tibbles
#' tibble::tibble(doi_examples)
Expand All @@ -89,6 +90,7 @@ pillar_shaft.biblids_doi <- function(x, ...) {
#' logical flag, giving whether to render DOIs as a chunk output or inline R.
#' Usually set by knitr.
#' @exportS3Method knitr::knit_print
#' @method knit_print biblids_doi
#' @inheritParams knitr::knit_print
knit_print.biblids_doi <- function(x, inline = FALSE, ...) {
requireNamespace2("knitr")
Expand Down
5 changes: 0 additions & 5 deletions R/zzz.R

This file was deleted.

22 changes: 13 additions & 9 deletions man/doi.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions man/doiEntry.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/doi_patterns.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6c73203

Please sign in to comment.