Skip to content

Commit

Permalink
Don't try to keep up with all the various endpoint changes when it co…
Browse files Browse the repository at this point in the history
…mes to pretty formatting, as this was resulting in errors when printing objects
  • Loading branch information
crew102 committed Sep 18, 2022
1 parent 419a4f0 commit e66504d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions R/print.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,11 @@ print.pv_data_result <- function(x, ...) {

k <- vapply(names(df), function(y) class(df[, y]), FUN.VALUE = character(1))

dat_level <- c(
patents = "a patent", inventors = "an inventor",
assignees = "an assignee", locations = "a location",
cpc_subsections = "a CPC subsection", uspc_mainclasses = "a USPC main class",
nber_subcategories = "a NBER subcategory"
)

lst <- ifelse("list" %in% k, " (with list column(s) inside) ", " ")

cat(
"#### A list with a single data frame", lst, "on ",
dat_level[[names(x)[1]]], " level:\n\n",
names(x)[1], " level:\n\n",
sep = ""
)

Expand Down

0 comments on commit e66504d

Please sign in to comment.