* using log directory 'd:/Rcompile/CRANpkg/local/4.0/zfit.Rcheck' * using R version 4.0.5 (2021-03-31) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'zfit/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'zfit' version '0.3.0' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'zfit' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [3s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... WARNING Warning: parse error in file 'lines': 9: unexpected '>' 28: # Pipe cars dataset into zlm_robust for fitting 29: cars |> ^ * checking examples ... [1s] ERROR Running examples in 'zfit-Ex.R' failed The error most likely occurred in: > ### Name: zfitter > ### Title: Create a pipe-friendly version of a given fitting function > ### Aliases: zfitter > > ### ** Examples > > > zlm_robust <- zfitter(estimatr::lm_robust) > zlm_robust(cars, speed~dist) Estimate Std. Error t value Pr(>|t|) CI Lower CI Upper DF (Intercept) 8.2839056 0.90884644 9.114747 4.810799e-12 6.4565474 10.1112639 48 dist 0.1655676 0.02004456 8.259977 8.937493e-11 0.1252653 0.2058699 48 > > # The resulting function works well the native pipe ... > if ( getRversion() >= "4.1.0" ) { + + # Pipe cars dataset into zlm_robust for fitting + cars |> zlm_robust( speed ~ dist ) Error: unexpected '>' in: " # Pipe cars dataset into zlm_robust for fitting cars |>" Execution halted * checking for unstated dependencies in 'tests' ... WARNING Warning: parse error in file 'testthat/test-zfit_base_zfunction_zfitter.R': 42:24: unexpected '>' 41: if ( getRversion() >= "4.1" ) { 42: m.zzlm.np <- cars |> ^ * checking tests ... [2s] ERROR Running 'testthat.R' [1s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(zfit) > > test_check("zfit") Error in parse(con, n = -1, srcfile = srcfile, encoding = "UTF-8") : test-zfit_base_zfunction_zfitter.R:42:24: unexpected '>' 41: if ( getRversion() >= "4.1" ) { 42: m.zzlm.np <- cars |> ^ Calls: test_check ... doTryCatch -> lapply -> FUN -> source_file -> parse Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs, 2 WARNINGs