CRAN Package Check Results for Package tidyquant

Last updated on 2022-05-15 01:52:33 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.3 12.34 237.18 249.52 OK
r-devel-linux-x86_64-debian-gcc 1.0.3 9.68 172.42 182.10 OK
r-devel-linux-x86_64-fedora-clang 1.0.3 289.21 NOTE
r-devel-linux-x86_64-fedora-gcc 1.0.3 268.49 NOTE
r-devel-windows-x86_64 1.0.3 95.00 311.00 406.00 NOTE
r-patched-linux-x86_64 1.0.3 17.66 217.40 235.06 OK
r-release-linux-x86_64 1.0.3 9.49 218.90 228.39 OK
r-release-macos-arm64 1.0.3 151.00 NOTE
r-release-macos-x86_64 1.0.3 194.00 NOTE
r-release-windows-x86_64 1.0.3 85.00 327.00 412.00 NOTE
r-oldrel-macos-arm64 1.0.3 217.00 NOTE
r-oldrel-macos-x86_64 1.0.3 1803.00 NOTE
r-oldrel-windows-ix86+x86_64 1.0.3 27.00 511.00 538.00 ERROR

Check Details

Version: 1.0.3
Check: package dependencies
Result: NOTE
    Imports includes 25 non-default packages.
    Importing from so many packages makes the package vulnerable to any of
    them becoming unavailable. Move as many as possible to Suggests and
    use conditionally.
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.0.3
Check: installed package size
Result: NOTE
     installed size is 5.1Mb
     sub-directories of 1Mb or more:
     doc 4.2Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64

Version: 1.0.3
Check: dependencies in R code
Result: NOTE
    Namespace in Imports field not imported from: ‘janitor’
     All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-release-macos-arm64, r-release-macos-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64

Version: 1.0.3
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: ‘Rblpapi’
Flavors: r-release-macos-arm64, r-oldrel-macos-arm64

Version: 1.0.3
Check: Rd cross-references
Result: NOTE
    Package unavailable to check Rd xrefs: ‘Rblpapi’
Flavors: r-release-macos-arm64, r-oldrel-macos-arm64

Version: 1.0.3
Check: examples
Result: ERROR
    Running examples in 'tidyquant-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: coord_x_date
    > ### Title: Zoom in on plot regions using date ranges or date-time ranges
    > ### Aliases: coord_x_date coord_x_datetime
    >
    > ### ** Examples
    >
    > # Load libraries
    > library(tidyquant)
    > library(dplyr)
    
    Attaching package: 'dplyr'
    
    The following objects are masked from 'package:xts':
    
     first, last
    
    The following objects are masked from 'package:stats':
    
     filter, lag
    
    The following objects are masked from 'package:base':
    
     intersect, setdiff, setequal, union
    
    > library(ggplot2)
    >
    > # coord_x_date
    > AAPL <- tq_get("AAPL", from = "2013-01-01", to = "2016-12-31")
    Warning: x = 'AAPL', get = 'stock.prices': Error in getSymbols.yahoo(Symbols = "AAPL", env = <environment>, verbose = FALSE, : Unable to import "AAPL".
    AAPL download failed after two attempts. Error message:
    Timeout was reached: [query1.finance.yahoo.com] Resolving timed out after 10000 milliseconds
    
    > AAPL %>%
    + ggplot(aes(x = date, y = adjusted)) +
    + geom_line() + # Plot stock price
    + geom_ma(n = 50) + # Plot 50-day Moving Average
    + geom_ma(n = 200, color = "red") + # Plot 200-day Moving Average
    + # Zoom in
    + coord_x_date(xlim = c("2016-01-01", "2016-12-31"),
    + ylim = c(75, 125))
    Error in `fortify()`:
    ! `data` must be a data frame, or other object coercible by `fortify()`, not a logical vector.
    Backtrace:
     x
     1. +-AAPL %>% ggplot(aes(x = date, y = adjusted))
     2. +-ggplot2::ggplot(., aes(x = date, y = adjusted))
     3. \-ggplot2:::ggplot.default(., aes(x = date, y = adjusted))
     4. +-ggplot2::fortify(data, ...)
     5. \-ggplot2:::fortify.default(data, ...)
     6. \-rlang::abort(msg)
    Execution halted
Flavor: r-oldrel-windows-ix86+x86_64

Version: 1.0.3
Check: tests
Result: ERROR
     Running 'testthat.R' [264s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(tidyquant)
     Loading required package: lubridate
    
     Attaching package: 'lubridate'
    
     The following objects are masked from 'package:base':
    
     date, intersect, setdiff, union
    
     Loading required package: PerformanceAnalytics
     Loading required package: xts
     Loading required package: zoo
    
     Attaching package: 'zoo'
    
     The following objects are masked from 'package:base':
    
     as.Date, as.Date.numeric
    
    
     Attaching package: 'PerformanceAnalytics'
    
     The following object is masked from 'package:graphics':
    
     legend
    
     Loading required package: quantmod
     Loading required package: TTR
     == Need to Learn tidyquant? ====================================================
     Business Science offers a 1-hour course - Learning Lab #9: Performance Analysis & Portfolio Optimization with tidyquant!
     </> Learn more at: https://university.business-science.io/p/learning-labs-pro </>
     > library(tidyverse)
     -- Attaching packages --------------------------------------- tidyverse 1.3.1 --
     v ggplot2 3.3.6 v purrr 0.3.4
     v tibble 3.1.7 v dplyr 1.0.9
     v tidyr 1.2.0 v stringr 1.4.0
     v readr 2.1.2 v forcats 0.5.1
     -- Conflicts ------------------------------------------ tidyverse_conflicts() --
     x lubridate::as.difftime() masks base::as.difftime()
     x lubridate::date() masks base::date()
     x readr::edition_get() masks testthat::edition_get()
     x dplyr::filter() masks stats::filter()
     x dplyr::first() masks xts::first()
     x lubridate::intersect() masks base::intersect()
     x purrr::is_null() masks testthat::is_null()
     x dplyr::lag() masks stats::lag()
     x dplyr::last() masks xts::last()
     x readr::local_edition() masks testthat::local_edition()
     x dplyr::matches() masks tidyr::matches(), testthat::matches()
     x lubridate::setdiff() masks base::setdiff()
     x lubridate::union() masks base::union()
     > library(dplyr)
     > library(tibble)
     >
     > test_check("tidyquant")
     [ FAIL 11 | WARN 10 | SKIP 3 | PASS 59 ]
    
     == Skipped tests ===============================================================
     * On CRAN (2)
     * On Windows (1)
    
     == Failed tests ================================================================
     -- Failure (test-tq_get_economic_data.R:20:5): Test returns tibble with correct rows and columns. --
     `test1` inherits from `'logical'` not `'character'`.
     -- Failure (test-tq_get_economic_data.R:21:5): Test returns tibble with correct rows and columns. --
     `test2` inherits from `'logical'` not `'character'`.
     -- Failure (test-tq_get_economic_data.R:25:5): Test returns tibble with correct rows and columns. --
     nrow(test1) not equal to 6.
     target is NULL, current is numeric
     -- Failure (test-tq_get_economic_data.R:27:5): Test returns tibble with correct rows and columns. --
     ncol(test1) not equal to 3.
     target is NULL, current is numeric
     -- Failure (test-tq_get_stock_prices.R:17:5): Test 1 returns tibble with correct rows and columns. --
     `test1` inherits from `'logical'` not `'character'`.
     -- Failure (test-tq_get_stock_prices.R:19:5): Test 1 returns tibble with correct rows and columns. --
     nrow(test1) not equal to 103.
     target is NULL, current is numeric
     -- Failure (test-tq_get_stock_prices.R:21:5): Test 1 returns tibble with correct rows and columns. --
     ncol(test1) not equal to 8.
     target is NULL, current is numeric
     -- Failure (test-tq_get_stock_prices.R:28:5): Test 2 returns tibble with correct rows and columns. --
     nrow(test2) not equal to 206.
     1/1 mismatches
     [1] 0 - 206 == -206
     -- Failure (test-tq_get_stock_prices.R:30:5): Test 2 returns tibble with correct rows and columns. --
     ncol(test2) not equal to 8.
     1/1 mismatches
     [1] 2 - 8 == -6
     -- Error (test-tq_mutate.R:8:1): (code run outside of `test_that()`) -----------
     Error in `tq_mutate_.default(data = data, select = lazyeval::expr_text(select),
     mutate_fun = lazyeval::expr_text(mutate_fun), col_rename = col_rename,
     ... = ...)`: data must be a tibble or data.frame object
     Backtrace:
     x
     1. +-... %>% tq_mutate(open:close, OpCl) at test-tq_mutate.R:8:0
     2. +-tidyquant::tq_mutate(., open:close, OpCl)
     3. | \-tidyquant::tq_mutate_(...)
     4. +-tidyquant::tq_mutate(., high:close, BBands)
     5. | \-tidyquant::tq_mutate_(...)
     6. \-tidyquant::tq_mutate(., close, MACD)
     7. +-tidyquant::tq_mutate_(...)
     8. \-tidyquant:::tq_mutate_.default(...)
     -- Error (test-tq_performance.R:23:1): (code run outside of `test_that()`) -----
     Error in `left_join(Ra, Rb, by = c(date = "date"))`: Join columns must be present in data.
     x Problem with `date`.
     Backtrace:
     x
     1. +-dplyr::left_join(Ra, Rb, by = c(date = "date")) at test-tq_performance.R:23:0
     2. \-dplyr:::left_join.data.frame(Ra, Rb, by = c(date = "date"))
     3. \-dplyr:::join_mutate(...)
     4. \-dplyr:::join_cols(...)
     5. \-dplyr:::standardise_join_by(...)
     6. \-dplyr:::check_join_vars(by$x, x_names, error_call = error_call)
     7. \-rlang::abort(bullets, call = error_call)
    
     [ FAIL 11 | WARN 10 | SKIP 3 | PASS 59 ]
     Error: Test failures
     In addition: Warning messages:
     1: In .Internal(lapply(X, FUN)) :
     closing unused connection 7 (https://fred.stlouisfed.org/series/XYZ/downloaddata/XYZ.csv)
     2: In .Internal(lapply(X, FUN)) :
     closing unused connection 6 (https://fred.stlouisfed.org/series/XYZ/downloaddata/XYZ.csv)
     3: In .Internal(lapply(X, FUN)) :
     closing unused connection 5 (https://fred.stlouisfed.org/series/CPIAUCSL/downloaddata/CPIAUCSL.csv)
     4: In .Internal(lapply(X, FUN)) :
     closing unused connection 4 (https://fred.stlouisfed.org/series/CPIAUCSL/downloaddata/CPIAUCSL.csv)
     Execution halted
Flavor: r-oldrel-windows-ix86+x86_64