Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create RStudio addin for creating a custom skimmer. #733

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ Suggests:
haven,
lubridate,
rmarkdown,
rstudioapi (>= 0.5),
testthat (>= 2.0.0),
withr
VignetteBuilder:
Expand All @@ -151,6 +152,7 @@ Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
Collate:
'addins..R'
'deprecated.R'
'dplyr.R'
'stats.R'
Expand Down
7 changes: 7 additions & 0 deletions R/addins..R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

create_skimmer <- function(){

rstudioapi::insertText(" skim_with(numeric = sfl(),
factor = sfl(),
character = sfl()) ")
}
15 changes: 14 additions & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"],
Expand Down
4 changes: 4 additions & 0 deletions inst/rstudio/addins.dcf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Name: Create custom skimmer
Description: Skeleton code for creating a custom skimmer.
Binding: create_skimmer
Interactive: false