Skip to content

Releases: KWB-R/kwb.utils

Release v0.15.0

28 Mar 12:45
Compare
Choose a tag to compare

kwb.utils v0.15.0

  • add loadFunctions() with private function
    • mergeEnvironments()
  • add callWithData() with private functions
    • splitIntoIdenticalRows(),
    • rbindFirstRows(),
    • seqAlongRows(),
    • nDims(),
    • expandToVector()
  • multiColumnLookup()
    • allow to lookup more than one value column
    • add arguments "drop", "includeKeys"
  • findPartialDuplicates()
    • reimplement the function in order to fix a 🐛
  • use catAndRun() within sourceScripts()

Full Changelog: v0.14.0...v0.15.0

Release v0.14.0

15 Apr 12:39
Compare
Choose a tag to compare

kwb.utils 0.14.0 2023-04-15

  • add assignObjects()
  • add catchWarning()
  • add createFunctionAssignObjects()
  • add createFunctionExtdataFile()
  • add directoryName()
  • add extdataFile()
  • add fullWinPath()
  • add getListNode()
  • add hasZeroLength()
  • add maxStringLength()
  • add stopFormatted()
  • improve implementation of hsAddMissingCols()
  • export noSuchElements()
  • improve extractSubstring()
  • subexpressionMatches(): rename arg "regularExpression" to "pattern", improve
  • add nameElements()
  • parallelNonNA(): use class of input vector "a" as class of output vector
  • fix bug in catAndRun(): show an appropriate time unit, not always "seconds"

Release v0.12.0

28 May 08:29
7eaf2d3
Compare
Choose a tag to compare
  • add argument "deuOnly" to substSpecialChars()
  • add function clipMatrix()
  • add argument "rng" to inRange()
  • add arguments "sep", "simple" to makeUnique()
  • substSpecialChars(): fix bug, substitute also colon with underscore
  • extractRowRanges():
    • let it work also for vector of character
    • rename argument "columnName" to "column", add argument "starts", change
      order of arguments

Release v0.11.0

24 Jan 10:16
Compare
Choose a tag to compare

New function: argsCsv()

v0.10.0

19 Jan 18:10
Compare
Choose a tag to compare

kwb.utils v0.10.0 (2022-01-19)

  • add findChanges(), to be used by kwb.utils::hsEventsOnChange()
  • add toConditional()
  • allow to pass a "path" to getAttribute()

Release v0.8.0

19 Feb 13:48
f58dba7
Compare
Choose a tag to compare
  • add: matrixToDataFrame()
  • add (private): get_cache_dir(), set_cache_dir()
  • add: readLinesWithEncoding(), moved from fakin.path.app::read_lines()
  • get_cached(): add argument "dbg"; return NULL if file does not exist
  • lastElement(): do not use tail() for lists, use x[[length(x)]] instead
  • orderBy(): allow to order by multiple columns
  • preparePdf(): set paper to "special" if width or height are set
  • readDictionary(): add arguments "fileEncoding", "...", pass on to
    readLinesWithEncoding()
  • writeDictionary(): check "file" argument. Do not check the file path unless
    "file" is of class character (and not a connection)

Relase v0.7.0

31 Jul 12:18
Compare
Choose a tag to compare

New functions:

  • backspace()
  • createAccessor()
  • createStorage()
  • left()
  • listToDepth()
  • objectToText()
  • orderBy()
  • repeated()
  • reproducibleSample()
  • right()
  • space()
  • substSpecialChars()
  • textToObject()

New generic (S3) function:

  • print.repro_sample()

Changes:

  • listToDepth(): Avoid endless recursion by checking for empty directory names, add argument "template"
  • hsSubstSpecChars(): Add upper case umlauts, rename to substSpecialChars(), make deprecated`
  • .askForPassword(): Set default "NULL" for argument "account"; return invisible
  • assignGlobally(): Make deprecated and do not use internally any more
  • getPassword(): Return invisible
  • hsPrepPdf(): Do not use internally any more
  • warningDeprecated(): Add argument "parentheses"

Release v0.6.0

02 Jun 05:46
fe0a495
Compare
Choose a tag to compare

New generic list function:

  • listToDepth()

New small helper functions:

  • backspace()
  • left()
  • orderBy()
  • repeated()
  • right()
  • space()

Release v0.5.1

29 Apr 11:08
1c6444d
Compare
Choose a tag to compare
  • Fix bug in moveColumnsToFront(): keep data frame structure in case that the data frame has only one column
  • createMatrix(): Set defaults for name.row and name.col to NULL (was: "")

Release v0.5.0

17 Dec 13:05
2a50458
Compare
Choose a tag to compare
  • new: toPdf()
  • new: assertFinalSlash()
  • new private functions:
    • cache_and_return()
    • clear_cache()
    • get_cached()
    • get_cached_file()
    • run_cached()
    • objectToText()
    • textToObject()