CRAN Package Check Results for Maintainer ‘Matthijs S. Berends <m.s.berends at umcg.nl>’

Last updated on 2019-09-20 00:48:05 CEST.

Package ERROR NOTE OK
AMR 7 5
clean 2 10

Package AMR

Current CRAN status: NOTE: 7, OK: 5

Version: 0.7.1
Check: installed package size
Result: NOTE
     installed size is 5.1Mb
     sub-directories of 1Mb or more:
     data 3.1Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-ix86+x86_64, r-patched-solaris-x86, r-release-windows-ix86+x86_64, r-release-osx-x86_64, r-oldrel-windows-ix86+x86_64, r-oldrel-osx-x86_64

Package clean

Current CRAN status: ERROR: 2, OK: 10

Version: 1.1.0
Check: whether package can be installed
Result: WARN
    Found the following significant warnings:
     Note: possible error in 'trimws(x, which = "both", ': unused argument (whitespace = "[ \t\r\n]")
    See 'd:/Rcompile/CRANpkg/local/3.5/clean.Rcheck/00install.out' for details.
    Information on the location(s) of code generating the 'Note's can be
    obtained by re-running with environment variable R_KEEP_PKG_SOURCE set
    to 'yes'.
Flavor: r-oldrel-windows-ix86+x86_64

Version: 1.1.0
Check: R code for possible problems
Result: NOTE
    clean_character: possible error in trimws(x, which = "both", whitespace
     = "[ \t\r\n]"): unused argument (whitespace = "[ \t\r\n]")
Flavors: r-oldrel-windows-ix86+x86_64, r-oldrel-osx-x86_64

Version: 1.1.0
Check: examples
Result: ERROR
    Running examples in 'clean-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: clean
    > ### Title: Clean column data to a class
    > ### Aliases: clean clean.data.frame clean_logical clean_factor
    > ### clean_numeric clean_character clean_currency clean_Date clean_POSIXct
    >
    > ### ** Examples
    >
    > clean_logical(c("Yes", "No")) # English
    [1] TRUE FALSE
    > clean_logical(c("Oui", "Non")) # French
    [1] TRUE FALSE
    > clean_logical(c("ya", "tidak")) # Indonesian
    [1] TRUE FALSE
    > clean_logical(x = c("Positive", "Negative", "Unknown", "Some value"),
    + true = "pos", false = "neg")
    [1] TRUE FALSE NA NA
    >
    > gender_age <- c("male 0-50", "male 50+", "female 0-50", "female 50+")
    > clean_factor(gender_age, c("M", "F"))
    [1] M M F F
    Levels: M F
    > clean_factor(gender_age, c("Male", "Female"))
    [1] Male Male Female Female
    Levels: Male Female
    > clean_factor(gender_age, c("0-50", "50+"), ordered = TRUE)
    [1] 0-50 50+ 0-50 50+
    Levels: 0-50 < 50+
    >
    > clean_Date("13jul18", "ddmmmyy")
    [1] "2018-07-13"
    > clean_Date("12 august 2010")
    Cleaning dates using format 'dd mmmm yyyy' ('%d %B %Y')
    [1] "2010-08-12"
    > clean_Date("12 06 2012")
    Cleaning dates using format 'dd mm yyyy' ('%d %m %Y')
    [1] "2012-06-12"
    > clean_Date(36526) # Excel date
    Cleaning dates using Excel format
    [1] "2000-01-01"
    > clean_Date("43658")
    Cleaning dates using Excel format
    [1] "2019-07-12"
    > clean_Date("14526", "Excel") # "1939-10-08"
    [1] "1939-10-08"
    >
    > clean_POSIXct("Created log on 2019/04/11 11:23 by user Joe")
    [1] "2019-04-11 11:23:00 CEST"
    >
    > clean_numeric("qwerty123456")
    [1] 123456
    > clean_numeric("Positive (0.143)")
    [1] 0.143
    > clean_numeric("0,143")
    [1] 0.143
    >
    > clean_character("qwerty123456")
    Error in trimws(x, which = "both", whitespace = "[ \t\r\n]") :
     unused argument (whitespace = "[ \t\r\n]")
    Calls: clean_character
    Execution halted
Flavor: r-oldrel-windows-ix86+x86_64

Version: 1.1.0
Check: tests
Result: ERROR
     Running 'testthat.R' [1s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > # ==================================================================== #
     > # TITLE #
     > # Fast and Easy Data Cleaning #
     > # #
     > # SOURCE #
     > # https://github.com/msberends/clean #
     > # #
     > # LICENCE #
     > # (c) 2019 Berends MS (m.s.berends@umcg.nl) #
     > # #
     > # This R package is free software; you can freely use and distribute #
     > # it for both personal and commercial purposes under the terms of the #
     > # GNU General Public License version 2.0 (GNU GPL-2), as published by #
     > # the Free Software Foundation. #
     > # #
     > # This R package was publicly released in the hope that it will be #
     > # useful, but it comes WITHOUT ANY WARRANTY OR LIABILITY. #
     > # ==================================================================== #
     >
     > library(testthat)
     > library(clean)
     >
     > test_check("clean")
     -- 1. Error: cleaning works (@test-clean.R#42) --------------------------------
     unused argument (whitespace = "[ \t\r\n]")
     1: expect_equal(clean_character(values), c("no", "no", "yes", "no", "no")) at testthat/test-clean.R:42
     2: quasi_label(enquo(object), label, arg = "object")
     3: eval_bare(get_expr(quo), get_env(quo))
     4: clean_character(values)
    
     == testthat results ===========================================================
     [ OK: 20 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
     1. Error: cleaning works (@test-clean.R#42)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-oldrel-windows-ix86+x86_64

Version: 1.1.0
Check: whether package can be installed
Result: WARN
    Found the following significant warnings:
     Note: possible error in 'trimws(x, which = "both", ': unused argument (whitespace = "[ \t\r\n]")
    See ‘/Volumes/SSD-Data/Builds/R-dev-web/QA/Simon/packages/el-capitan-x86_64/results/3.5/clean.Rcheck/00install.out’ for details.
    Information on the location(s) of code generating the ‘Note’s can be
    obtained by re-running with environment variable R_KEEP_PKG_SOURCE set
    to ‘yes’.
Flavor: r-oldrel-osx-x86_64

Version: 1.1.0
Check: examples
Result: ERROR
    Running examples in ‘clean-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: clean
    > ### Title: Clean column data to a class
    > ### Aliases: clean clean.data.frame clean_logical clean_factor
    > ### clean_numeric clean_character clean_currency clean_Date clean_POSIXct
    >
    > ### ** Examples
    >
    > clean_logical(c("Yes", "No")) # English
    [1] TRUE FALSE
    > clean_logical(c("Oui", "Non")) # French
    [1] TRUE FALSE
    > clean_logical(c("ya", "tidak")) # Indonesian
    [1] TRUE FALSE
    > clean_logical(x = c("Positive", "Negative", "Unknown", "Some value"),
    + true = "pos", false = "neg")
    [1] TRUE FALSE NA NA
    >
    > gender_age <- c("male 0-50", "male 50+", "female 0-50", "female 50+")
    > clean_factor(gender_age, c("M", "F"))
    [1] M M F F
    Levels: M F
    > clean_factor(gender_age, c("Male", "Female"))
    [1] Male Male Female Female
    Levels: Male Female
    > clean_factor(gender_age, c("0-50", "50+"), ordered = TRUE)
    [1] 0-50 50+ 0-50 50+
    Levels: 0-50 < 50+
    >
    > clean_Date("13jul18", "ddmmmyy")
    [1] "2018-07-13"
    > clean_Date("12 august 2010")
    Cleaning dates using format 'dd mmmm yyyy' ('%d %B %Y')
    [1] "2010-08-12"
    > clean_Date("12 06 2012")
    Cleaning dates using format 'dd mm yyyy' ('%d %m %Y')
    [1] "2012-06-12"
    > clean_Date(36526) # Excel date
    Cleaning dates using Excel format
    [1] "2000-01-01"
    > clean_Date("43658")
    Cleaning dates using Excel format
    [1] "2019-07-12"
    > clean_Date("14526", "Excel") # "1939-10-08"
    [1] "1939-10-08"
    >
    > clean_POSIXct("Created log on 2019/04/11 11:23 by user Joe")
    [1] "2019-04-11 11:23:00 EDT"
    >
    > clean_numeric("qwerty123456")
    [1] 123456
    > clean_numeric("Positive (0.143)")
    [1] 0.143
    > clean_numeric("0,143")
    [1] 0.143
    >
    > clean_character("qwerty123456")
    Error in trimws(x, which = "both", whitespace = "[ \t\r\n]") :
     unused argument (whitespace = "[ \t\r\n]")
    Calls: clean_character
    Execution halted
Flavor: r-oldrel-osx-x86_64

Version: 1.1.0
Check: tests
Result: ERROR
     Running ‘testthat.R’ [1s/1s]
    Running the tests in ‘tests/testthat.R’ failed.
    Last 13 lines of output:
     >
     > test_check("clean")
     ── 1. Error: cleaning works (@test-clean.R#42) ────────────────────────────────
     unused argument (whitespace = "[ \t\r\n]")
     1: expect_equal(clean_character(values), c("no", "no", "yes", "no", "no")) at testthat/test-clean.R:42
     2: quasi_label(enquo(object), label, arg = "object")
     3: eval_bare(get_expr(quo), get_env(quo))
     4: clean_character(values)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 20 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
     1. Error: cleaning works (@test-clean.R#42)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-oldrel-osx-x86_64