diff --git a/CITATION.cff b/CITATION.cff index 0944304..e13124e 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -1,6 +1,6 @@ cff-version: 1.2.0 title: vertesy/ReadWriter Functions to read and write tabular data files conveniently. -version: v1.6.9 +version: v1.7.0 message: >- If you use this software, please cite it using these metadata. type: software diff --git a/DESCRIPTION b/DESCRIPTION index f4f3d37..a5fd083 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: ReadWriter Title: ReadWriter -Version: 1.6.9 +Version: 1.7.0 Authors@R: person("Abel", "Vertesy", , "av@imba.oeaw.ac.at", role = c("aut", "cre")) Description: ReadWriter is a set of R functions to read and write files @@ -9,13 +9,13 @@ License: GPL-3 + file LICENSE BugReports: https://github.com/vertesy/ReadWriter/issues Depends: Stringendo (>= 0.5.0) -Imports: +Imports: gtools, openxlsx, qs, readr, stringi Encoding: UTF-8 -Packaged: 2026-08-25 16:41:37.734198 +Packaged: 2026-09-02 15:32:34.871125 Roxygen: list(markdown = TRUE) RoxygenNote: 7.3.2 diff --git a/Development/Create_the_ReadWriter_Package.R b/Development/Create_the_ReadWriter_Package.R index db44c14..da72cae 100644 --- a/Development/Create_the_ReadWriter_Package.R +++ b/Development/Create_the_ReadWriter_Package.R @@ -15,10 +15,24 @@ config.path <- file.path(repository.dir, "Development/config.R") "TAKE A LOOK AT" file.edit(config.path) source(config.path) -package.name <- DESCRIPTION$'package.name' + +# Check and Document your package ------------------------------------------------ +devtools::check_man(repository.dir) PackageTools::document_and_create_package(repository.dir, config_file = 'config.R') -'git add commit push to remote' + + +# Automated Codebase linting to tidyverse style ------------------------------------------------ +styler::style_pkg(repository.dir) +# styler::style_file("~/GitHub/Packages/Seurat.utils/R/Seurat.Utils.Visualization.R") + +# Replaces T with TRUE and F with FALSE ------------------------------------------------ +(ls.scripts.full.path <- list.files(file.path(repository.dir, "R"), full.names = T, pattern = '.R$')) +for (scriptX in ls.scripts.full.path) { + PackageTools::replace_tf_with_true_false(scriptX) + PackageTools::replace_short_calls(scriptX) +} + # Install your package ------------------------------------------------ "disable rprofile by" diff --git a/Development/config.R b/Development/config.R index 593f8b9..0c2ef1b 100644 --- a/Development/config.R +++ b/Development/config.R @@ -3,7 +3,7 @@ DESCRIPTION <- list( package.name = "ReadWriter", - version = "1.6.9", + version = "1.7.0", title = "ReadWriter", description = "ReadWriter is a set of R functions to read and write files conveniently. Builds on Stringendo and complements CodeAndRoll2.", diff --git a/NAMESPACE b/NAMESPACE index 5d57af3..7cf54dc 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -23,6 +23,8 @@ export(write.simple.tsv) export(write.simple.vec) export(write.simple.xlsx) export(write.simplest) +importFrom(Stringendo,ParseFullFilePath) +importFrom(Stringendo,sppp) importFrom(gtools,na.replace) importFrom(openxlsx,createStyle) importFrom(openxlsx,getSheetNames) diff --git a/man/read.simple.xls.Rd b/man/read.simple.xls.Rd index 1663ee1..48bfabb 100644 --- a/man/read.simple.xls.Rd +++ b/man/read.simple.xls.Rd @@ -5,7 +5,7 @@ \title{read.simple.xls} \usage{ read.simple.xls( - pfn = kollapse(...), + pfn = Stringendo::kollapse(...), row_namePos = NULL, ..., header_ = TRUE, diff --git a/man/write.simplest.Rd b/man/write.simplest.Rd index 737e6a4..b6fcccc 100644 --- a/man/write.simplest.Rd +++ b/man/write.simplest.Rd @@ -8,7 +8,7 @@ write.simplest( vec = LETTERS[1:11], append = TRUE, header = NULL, - prefix = kppws(substitute(vec), idate()), + prefix = Stringendo::kppws(substitute(vec), Stringendo::idate()), file_path = get0("path_write_simplest", ifnotfound = "./__clipboard.txt") ) }