Skip to content

Commit

Permalink
Minor fix S3 consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
MansMeg committed Jan 13, 2024
1 parent 0ed25d9 commit cb02d5c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
6 changes: 3 additions & 3 deletions R/pxweb_as_data_frame.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pxweb_as_data_frame.pxweb_data <- function(x, row.names = NULL, optional = FALSE

#' @rdname pxweb_as_data_frame
#' @export
pxweb_as_data_frame.pxweb_data_comments <- function(x, optional = FALSE, ..., stringsAsFactors = FALSE) {
pxweb_as_data_frame.pxweb_data_comments <- function(x, row.names = NULL, optional = FALSE, ..., stringsAsFactors = FALSE) {
checkmate::assert_flag(optional)
checkmate::assert_flag(stringsAsFactors)

Expand All @@ -73,7 +73,7 @@ pxweb_as_data_frame.pxweb_data_comments <- function(x, optional = FALSE, ..., st

#' @rdname pxweb_as_data_frame
#' @export
pxweb_as_data_frame.pxweb_data_comment <- function(x, optional = FALSE, ..., stringsAsFactors = FALSE) {
pxweb_as_data_frame.pxweb_data_comment <- function(x, row.names = NULL, optional = FALSE, ..., stringsAsFactors = FALSE) {
checkmate::assert_flag(optional)
checkmate::assert_flag(stringsAsFactors)

Expand All @@ -93,7 +93,7 @@ pxweb_as_data_frame.pxweb_data_comment <- function(x, optional = FALSE, ..., str

#' @rdname pxweb_as_data_frame
#' @export
pxweb_as_data_frame.pxweb_levels <- function(x, optional = FALSE, ..., stringsAsFactors = FALSE) {
pxweb_as_data_frame.pxweb_levels <- function(x, row.names = NULL, optional = FALSE, ..., stringsAsFactors = FALSE) {
checkmate::assert_flag(optional)
checkmate::assert_flag(stringsAsFactors)

Expand Down
24 changes: 21 additions & 3 deletions man/pxweb_as_data_frame.Rd

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

0 comments on commit cb02d5c

Please sign in to comment.