diff --git a/DESCRIPTION b/DESCRIPTION index 9d302ee0..3c86c27d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -143,6 +143,7 @@ Suggests: haven, lubridate, rmarkdown, + rstudioapi (>= 0.5), testthat (>= 2.0.0), withr VignetteBuilder: @@ -151,6 +152,7 @@ Encoding: UTF-8 Roxygen: list(markdown = TRUE) RoxygenNote: 7.2.3 Collate: + 'addins..R' 'deprecated.R' 'dplyr.R' 'stats.R' diff --git a/R/addins..R b/R/addins..R new file mode 100644 index 00000000..19470683 --- /dev/null +++ b/R/addins..R @@ -0,0 +1,7 @@ + +create_skimmer <- function(){ + + rstudioapi::insertText(" skim_with(numeric = sfl(), + factor = sfl(), + character = sfl()) ") +} diff --git a/codemeta.json b/codemeta.json index 534a5fbf..cd30fdaf 100644 --- a/codemeta.json +++ b/codemeta.json @@ -285,6 +285,19 @@ }, "sameAs": "https://CRAN.R-project.org/package=rmarkdown" }, + { + "@type": "SoftwareApplication", + "identifier": "rstudioapi", + "name": "rstudioapi", + "version": ">= 0.5", + "provider": { + "@id": "https://cran.r-project.org", + "@type": "Organization", + "name": "Comprehensive R Archive Network (CRAN)", + "url": "https://cran.r-project.org" + }, + "sameAs": "https://CRAN.R-project.org/package=rstudioapi" + }, { "@type": "SoftwareApplication", "identifier": "testthat", @@ -490,7 +503,7 @@ }, "SystemRequirements": null }, - "fileSize": "2405.754KB", + "fileSize": "2406.603KB", "releaseNotes": "https://github.com/ropensci/skimr/blob/master/NEWS.md", "readme": "https://github.com/ropensci/skimr/blob/main/README.md", "contIntegration": ["https://github.com/ropensci/skimr/actions?workflow=R-CMD-check", "https://app.codecov.io/gh/ropensci/skimr"], diff --git a/inst/rstudio/addins.dcf b/inst/rstudio/addins.dcf new file mode 100644 index 00000000..64e62631 --- /dev/null +++ b/inst/rstudio/addins.dcf @@ -0,0 +1,4 @@ +Name: Create custom skimmer +Description: Skeleton code for creating a custom skimmer. +Binding: create_skimmer +Interactive: false