* using log directory 'd:/Rcompile/CRANpkg/local/4.0/pedtools.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 'pedtools/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'pedtools' version '1.1.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 'pedtools' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' 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 ... [24s] 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 '>' 505: # Alternative syntax, adding one marker at a time 506: x2 = x |> ^ * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [6s] ERROR Running examples in 'pedtools-Ex.R' failed The error most likely occurred in: > ### Name: marker_attach > ### Title: Attach markers to pedigrees > ### Aliases: marker_attach setMarkers addMarkers > > ### ** Examples > > x = singleton(1) > m1 = marker(x, `1` = "1/2") > m2 = marker(x, `1` = "a/b") > > # Attach to x > x1 = setMarkers(x, list(m1, m2)) > > # Reversing the order of the markers > setMarkers(x, list(m2, m1)) id fid mid sex <1> <2> 1 * * 1 a/b 1/2 > > # Alternative syntax, adding one marker at a time > x2 = x |> addMarker(`1` = "1/2") |> addMarker(`1` = "a/b") Error: unexpected '>' in "x2 = x |>" Execution halted * checking for unstated dependencies in 'tests' ... WARNING Warning: parse error in file 'testthat/test-marker-attach.R': 49:53: unexpected '>' 48: test_that("addMarkers() gives same result with and without alleleMarkers", { 49: x = nuclearPed(fa="fa", mo="mo", children="boy") |> ^ * checking tests ... [5s] ERROR Running 'testthat.R' [4s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(pedtools) > > test_check("pedtools") Error in parse(con, n = -1, srcfile = srcfile, encoding = "UTF-8") : test-marker-attach.R:49:53: unexpected '>' 48: test_that("addMarkers() gives same result with and without alleleMarkers", { 49: x = nuclearPed(fa="fa", mo="mo", children="boy") |> ^ Calls: test_check ... doTryCatch -> lapply -> FUN -> source_file -> parse Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [6s] OK * checking PDF version of manual ... OK * DONE Status: 2 ERRORs, 2 WARNINGs