From 47f38cf455fb657bbadd3972a8524178725a3219 Mon Sep 17 00:00:00 2001 From: pvictor Date: Fri, 12 Feb 2021 15:15:08 +0100 Subject: [PATCH] prepare for cran --- .Rbuildignore | 1 + DESCRIPTION | 2 +- NEWS.md | 4 ++++ R/import-modal.R | 2 +- README.md | 2 +- cran-comments.md | 15 +++++++++++++++ man/import-modal.Rd | 2 +- vignettes/datamods.Rmd | 2 +- 8 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 NEWS.md create mode 100644 cran-comments.md diff --git a/.Rbuildignore b/.Rbuildignore index 40e89ba..c6edf08 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -6,3 +6,4 @@ ^Meta$ ^\.github$ ^dev$ +^cran-comments\.md$ diff --git a/DESCRIPTION b/DESCRIPTION index 49e9d6f..ed38619 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: datamods Title: Modules to Import and Manipulate Data in 'Shiny' -Version: 0.1.0.9000 +Version: 1.0.0 Authors@R: c(person(given = "Victor", family = "Perrier", diff --git a/NEWS.md b/NEWS.md new file mode 100644 index 0000000..85b9256 --- /dev/null +++ b/NEWS.md @@ -0,0 +1,4 @@ +# datamods 1.0.0 + +* First release on CRAN: Shiny modules import, to update, validate and filter data in interactive applications +* Added a `NEWS.md` file to track changes to the package. diff --git a/R/import-modal.R b/R/import-modal.R index 65560e0..510dad6 100644 --- a/R/import-modal.R +++ b/R/import-modal.R @@ -6,7 +6,7 @@ #' #' @param id Module's id #' @param from The import_ui & server to use, i.e. the method. -#' There are 4 options to choose from. ("env", "file", "copypaste", "googlsheets") +#' There are 4 options to choose from. ("env", "file", "copypaste", "googlesheets") #' #' @return #' * UI: HTML tags that can be included in shiny's UI diff --git a/README.md b/README.md index c599f9e..95af5be 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ This module also allow to view imported data and to update variables. Module `update_variables_ui()` / `update_variables_server()` allow to: * **select** variables of interest in a dataset -* **rename** variablesto be used in application after that +* **rename** variables to be used in application after that * **convert** variables to change their class, from character to numeric for example ![](man/figures/datamods-update.png) diff --git a/cran-comments.md b/cran-comments.md new file mode 100644 index 0000000..0312056 --- /dev/null +++ b/cran-comments.md @@ -0,0 +1,15 @@ +## Test environments +* local R installation, R 4.0.3 +* ubuntu 16.04, Windows 10, macOS (on GitHub Actions), R 4.0.3 +* win-builder (devel) + +## R CMD check results + +0 errors | 0 warnings | 1 note + +* This is a new release. +This package contains Shiny modules to import, update, validate and filter data in interactive applications. + +Thanks, + +Victor diff --git a/man/import-modal.Rd b/man/import-modal.Rd index dac0734..88bfa0c 100644 --- a/man/import-modal.Rd +++ b/man/import-modal.Rd @@ -22,7 +22,7 @@ import_modal(id, from, title = "Import data", size = "l") \item{id}{Module's id} \item{from}{The import_ui & server to use, i.e. the method. -There are 4 options to choose from. ("env", "file", "copypaste", "googlsheets")} +There are 4 options to choose from. ("env", "file", "copypaste", "googlesheets")} \item{validation_opts}{\code{list} of arguments passed to \code{\link{validation_server}}.} diff --git a/vignettes/datamods.Rmd b/vignettes/datamods.Rmd index 4504151..78b90ed 100644 --- a/vignettes/datamods.Rmd +++ b/vignettes/datamods.Rmd @@ -89,7 +89,7 @@ imported <- import_copypaste_server("myid") #### From Googlesheet -Imports data from a Googlsheet. Use the shareable link to read data. +Imports data from a Googlesheet. Use the shareable link to read data. ```{r} # UI