CRAN Package Check Results for Package lazytrade

Last updated on 2021-12-01 05:59:29 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.5.2 7.06 61.46 68.52 ERROR
r-devel-linux-x86_64-debian-gcc 0.5.2 5.21 50.00 55.21 ERROR
r-devel-linux-x86_64-fedora-clang 0.5.2 89.05 ERROR
r-devel-linux-x86_64-fedora-gcc 0.5.2 79.50 ERROR
r-devel-windows-x86_64-new-UL 0.5.2 21.00 126.00 147.00 OK
r-devel-windows-x86_64-new-TK 0.5.2 ERROR
r-devel-windows-x86_64-old 0.5.2 11.00 63.00 74.00 ERROR
r-patched-linux-x86_64 0.5.2 7.14 58.41 65.55 OK
r-patched-solaris-x86 0.5.2 106.00 OK
r-release-linux-x86_64 0.5.2 5.86 58.87 64.73 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 12.00 66.00 78.00 OK
r-oldrel-macos-x86_64 0.5.2 OK
r-oldrel-windows-ix86+x86_64 0.5.2 10.00 61.00 71.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/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:
     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-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-linux-x86_64-fedora-gcc, r-devel-windows-x86_64-new-TK

Version: 0.5.2
Check: tests
Result: ERROR
     Running 'testthat.R' [3s]
    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