Last updated on 2024-06-11 16:49:32 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 1.0.7 | 14.09 | 274.88 | 288.97 | OK | |
r-devel-linux-x86_64-debian-gcc | 1.0.7 | 9.34 | 202.30 | 211.64 | OK | |
r-devel-linux-x86_64-fedora-clang | 1.0.7 | 351.11 | NOTE | |||
r-devel-linux-x86_64-fedora-gcc | 1.0.7 | 363.39 | NOTE | |||
r-devel-windows-x86_64 | 1.0.7 | 13.00 | 221.00 | 234.00 | OK | |
r-patched-linux-x86_64 | 1.0.7 | 16.47 | 264.89 | 281.36 | OK | |
r-release-linux-x86_64 | 1.0.7 | 11.26 | 261.85 | 273.11 | OK | |
r-release-macos-arm64 | 1.0.7 | 129.00 | NOTE | |||
r-release-macos-x86_64 | 1.0.7 | 216.00 | OK | |||
r-release-windows-x86_64 | 1.0.7 | 12.00 | 216.00 | 228.00 | OK | |
r-oldrel-macos-arm64 | 1.0.7 | 144.00 | NOTE | |||
r-oldrel-macos-x86_64 | 1.0.7 | 206.00 | OK | |||
r-oldrel-windows-x86_64 | 1.0.7 | 15.00 | 285.00 | 300.00 | ERROR |
Version: 1.0.7
Check: package dependencies
Result: NOTE
Imports includes 23 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.7
Check: dependencies in R code
Result: NOTE
Namespace in Imports field not imported from: ‘tidyverse’
All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 1.0.7
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.7
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.7
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)
######################### Warning from 'xts' package ##########################
# #
# The dplyr lag() function breaks how base R's lag() function is supposed to #
# work, which breaks lag(my_xts). Calls to lag(my_xts) that you type or #
# source() into this session won't work correctly. #
# #
# Use stats::lag() to make sure you're not using dplyr::lag(), or you can add #
# conflictRules('dplyr', exclude = 'lag') to your .Rprofile to stop #
# dplyr from breaking base R's lag() function. #
# #
# Code in packages is not affected. It's protected by R's namespace mechanism #
# Set `options(xts.warn_dplyr_breaks_lag = FALSE)` to suppress this warning. #
# #
###############################################################################
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".
Timeout was reached: [query2.finance.yahoo.com] Failed to connect to query2.finance.yahoo.com port 443 after 10013 ms: Timeout was reached
> 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"))
Error in `fortify()`:
! `data` must be a <data.frame>, or an object coercible by `fortify()`,
or a valid <data.frame>-like object coercible by `as.data.frame()`.
Caused by error in `.prevalidate_data_frame_like_object()`:
! `dim(data)` must return an <integer> of length 2.
Backtrace:
▆
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::try_fetch(...)
7. │ ├─base::tryCatch(...)
8. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
9. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
10. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
11. │ └─base::withCallingHandlers(...)
12. └─ggplot2:::validate_as_data_frame(model)
13. └─ggplot2:::.prevalidate_data_frame_like_object(data)
14. └─cli::cli_abort(paste0("{.code dim(data)} must return ", "an {.cls integer} of length 2."))
15. └─rlang::abort(...)
Execution halted
Flavor: r-oldrel-windows-x86_64
Version: 1.0.7
Check: tests
Result: ERROR
Running 'testthat.R' [62s]
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
> library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.4 ✔ readr 2.1.5
✔ forcats 1.0.0 ✔ stringr 1.5.1
✔ ggplot2 3.5.1 ✔ tibble 3.2.1
✔ purrr 1.0.2 ✔ tidyr 1.3.1
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ readr::edition_get() masks testthat::edition_get()
✖ dplyr::filter() masks stats::filter()
✖ dplyr::first() masks xts::first()
✖ purrr::is_null() masks testthat::is_null()
✖ dplyr::lag() masks stats::lag()
✖ dplyr::last() masks xts::last()
✖ readr::local_edition() masks testthat::local_edition()
✖ dplyr::matches() masks tidyr::matches(), testthat::matches()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
> library(dplyr)
> library(tibble)
>
> test_check("tidyquant")
[ FAIL 8 | WARN 4 | SKIP 3 | PASS 86 ]
══ Skipped tests (3) ═══════════════════════════════════════════════════════════
• On CRAN (2): 'test-index-tq_index.R:17:5', 'test-index_tq_exchange.R:20:5'
• On Windows (1): 'test-index_tq_exchange.R:34:5'
══ 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] 103 - 206 == -103
[ FAIL 8 | WARN 4 | SKIP 3 | PASS 86 ]
Error: Test failures
Execution halted
Flavor: r-oldrel-windows-x86_64