Skip to content

Commit

Permalink
Remove ext in internal data ref #313 [no ci] (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
chainsawriot authored Sep 8, 2023
1 parent f89a793 commit 81c0423
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 84 deletions.
Binary file modified R/sysdata.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ suppressPackageStartupMessages(library(data.table))
```

```{r featuretable, echo = FALSE}
rf <- data.table(rio:::rio_formats)[!input %in% c(",", ";", "|", "\\t") & type %in% c("import", "suggest", "archive"), !"ext"]
rf <- data.table(rio:::rio_formats)[!input %in% c(",", ";", "|", "\\t") & type %in% c("import", "suggest", "archive"),]
short_rf <- rf[, paste(input, collapse = " / "), by = format_name]
type_rf <- unique(rf[,c("format_name", "type", "import_function", "export_function", "note")])
Expand Down
7 changes: 7 additions & 0 deletions data-raw/convert.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@ usethis::use_data(rio_formats, overwrite = TRUE, internal = TRUE)
## writeLines(jsonlite::prettify(jsonlite::toJSON(new_data)), here::here("data-raw/single.json"))
## rio_formats <- rio::import(here::here("data-raw", "single.json"))
## usethis::use_data(rio_formats, overwrite = TRUE, internal = TRUE)

## #351 remove ext
## old_data <- jsonlite::read_json(here::here("data-raw/single.json"), TRUE)
## new_data <- old_data[, -3]
## writeLines(jsonlite::prettify(jsonlite::toJSON(new_data)), here::here("data-raw/single.json"))
## rio_formats <- rio::import(here::here("data-raw", "single.json"))
## usethis::use_data(rio_formats, overwrite = TRUE, internal = TRUE)
Loading

0 comments on commit 81c0423

Please sign in to comment.