CRAN Package Check Results for Package lazytrade

Last updated on 2021-12-08 19:51:36 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.5.2 5.95 70.02 75.97 ERROR
r-devel-linux-x86_64-debian-gcc 0.5.2 4.57 53.87 58.44 ERROR
r-devel-linux-x86_64-fedora-clang 0.5.2 90.10 ERROR
r-devel-linux-x86_64-fedora-gcc 0.5.2 83.22 ERROR
r-devel-windows-x86_64-new-UL 0.5.2 20.00 127.00 147.00 ERROR
r-devel-windows-x86_64-new-TK 0.5.2 ERROR
r-devel-windows-x86_64-old 0.5.2 11.00 71.00 82.00 ERROR
r-patched-linux-x86_64 0.5.2 7.37 67.29 74.66 OK
r-release-linux-x86_64 0.5.2 6.53 67.34 73.87 OK
r-release-macos-arm64 0.5.2 OK
r-release-macos-x86_64 0.5.2 OK
r-release-windows-ix86+x86_64 0.5.2 7.00 74.00 81.00 OK
r-oldrel-macos-x86_64 0.5.2 OK
r-oldrel-windows-ix86+x86_64 0.5.2 12.00 85.00 97.00 OK

Check Details

Version: 0.5.2
Check: examples
Result: ERROR
    Running examples in 'lazytrade-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: util_profit_factor
    > ### Title: Calculate Profit Factor
    > ### Aliases: util_profit_factor
    >
    > ### ** Examples
    >
    >
    > library(magrittr)
    > library(dplyr)
    
    Attaching package: 'dplyr'
    
    The following objects are masked from 'package:stats':
    
     filter, lag
    
    The following objects are masked from 'package:base':
    
     intersect, setdiff, setequal, union
    
    > library(lazytrade)
    > data(profit_factor_data)
    > profit_factor_data %>%
    + group_by(X1) %>%
    + summarise(PnL = sum(X5),
    + NumTrades = n(),
    + PrFact = util_profit_factor(X5)) %>%
    + select(PrFact) %>% head(1) %>% as.vector() %>% round(3)
    Error in round(., 3) : non-numeric argument to mathematical function
    Calls: %>%
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 0.5.2
Check: tests
Result: ERROR
     Running 'testthat.R' [5s/8s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(lazytrade)
     >
     > test_check("lazytrade")
     == Failed tests ================================================================
     -- Error (test-util_profit_factor.R:11:3): test value of the calculation -------
     Error in `round(., 3)`: non-numeric argument to mathematical function
     Backtrace:
     x
     1. \-`%>%`(...) test-util_profit_factor.R:11:2
    
     [ FAIL 1 | WARN 0 | SKIP 0 | PASS 25 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.5.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [4s/9s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(lazytrade)
     >
     > test_check("lazytrade")
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-util_profit_factor.R:11:3): test value of the calculation ───────
     Error in `round(., 3)`: non-numeric argument to mathematical function
     Backtrace:
     █
     1. └─`%>%`(...) test-util_profit_factor.R:11:2
    
     [ FAIL 1 | WARN 0 | SKIP 0 | PASS 25 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.5.2
Check: examples
Result: ERROR
    Running examples in ‘lazytrade-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: util_profit_factor
    > ### Title: Calculate Profit Factor
    > ### Aliases: util_profit_factor
    >
    > ### ** Examples
    >
    >
    > library(magrittr)
    > library(dplyr)
    
    Attaching package: ‘dplyr’
    
    The following objects are masked from ‘package:stats’:
    
     filter, lag
    
    The following objects are masked from ‘package:base’:
    
     intersect, setdiff, setequal, union
    
    > library(lazytrade)
    > data(profit_factor_data)
    > profit_factor_data %>%
    + group_by(X1) %>%
    + summarise(PnL = sum(X5),
    + NumTrades = n(),
    + PrFact = util_profit_factor(X5)) %>%
    + select(PrFact) %>% head(1) %>% as.vector() %>% round(3)
    Error in round(., 3) : non-numeric argument to mathematical function
    Calls: %>%
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64-new-UL, r-devel-windows-x86_64-new-TK, r-devel-windows-x86_64-old

Version: 0.5.2
Check: tests
Result: ERROR
     Running ‘testthat.R’
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(lazytrade)
     >
     > test_check("lazytrade")
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-util_profit_factor.R:11:3): test value of the calculation ───────
     Error in `round(., 3)`: non-numeric argument to mathematical function
     Backtrace:
     █
     1. └─`%>%`(...) test-util_profit_factor.R:11:2
    
     [ FAIL 1 | WARN 0 | SKIP 0 | PASS 25 ]
     Error: Test failures
     Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-x86_64-new-TK

Version: 0.5.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [6s/17s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(lazytrade)
     >
     > test_check("lazytrade")
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-util_profit_factor.R:11:3): test value of the calculation ───────
     Error in `round(., 3)`: non-numeric argument to mathematical function
     Backtrace:
     █
     1. └─`%>%`(...) test-util_profit_factor.R:11:2
    
     [ FAIL 1 | WARN 0 | SKIP 0 | PASS 25 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.5.2
Check: tests
Result: ERROR
     Running 'testthat.R' [9s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(lazytrade)
     >
     > test_check("lazytrade")
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-util_profit_factor.R:11:3): test value of the calculation ───────
     Error in `round(., 3)`: non-numeric argument to mathematical function
     Backtrace:
     █
     1. └─`%>%`(...) test-util_profit_factor.R:11:2
    
     [ FAIL 1 | WARN 0 | SKIP 0 | PASS 25 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-windows-x86_64-new-UL

Version: 0.5.2
Check: tests
Result: ERROR
     Running 'testthat.R' [5s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(lazytrade)
     >
     > test_check("lazytrade")
     == Failed tests ================================================================
     -- Error (test-util_profit_factor.R:11:3): test value of the calculation -------
     Error in `round(., 3)`: non-numeric argument to mathematical function
     Backtrace:
     x
     1. \-`%>%`(...) test-util_profit_factor.R:11:2
    
     [ FAIL 1 | WARN 0 | SKIP 0 | PASS 25 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-windows-x86_64-old