* using log directory 'd:/RCompile/CRANincoming/R-devel/fromo.Rcheck' * using R Under development (unstable) (2024-11-28 r87392 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'fromo/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'fromo' version '0.2.4' * checking CRAN incoming feasibility ... [13s] OK * 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 serialization versions ... OK * checking whether package 'fromo' can be installed ... OK * used C++ compiler: 'g++.exe (GCC) 13.3.0' * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... 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 code 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 ... NOTE as.centsums.default: no visible binding for global variable 'wts' Undefined global functions or variables: wts * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... WARNING Undocumented arguments in Rd file 'as.centsums.Rd' '...' Undocumented arguments in Rd file 'two_t_runningmoments.Rd' 'restart_period' Functions with \usage entries need to have the appropriate \alias entries, and all their arguments documented. The \usage entries must correspond to syntactically valid R code. See chapter 'Writing R documentation files' in the 'Writing R Extensions' manual. * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking sizes of PDF files under 'inst/doc' ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'fromo-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: as.centsums > ### Title: Coerce to a centsums object. > ### Aliases: as.centsums as.centsums.default > > ### ** Examples > > set.seed(123) > x <- rnorm(1000) > cs <- as.centsums(x, order=5) Error in as.centsums.default(x, order = 5) : object 'wts' not found Calls: as.centsums -> as.centsums.default -> cent_sums Execution halted * checking for unstated dependencies in 'tests' ... WARNING Warning: parse error in file 'testthat/test-trunning.r': 448:1: unexpected input 447: for (rp in c(1L,40L)) { 448: << ^ * checking tests ... ERROR Running 'testthat.R' Running the tests in 'tests/testthat.R' failed. Complete output: > # Copyright 2016 Steven E. Pav. All Rights Reserved. > # Author: Steven E. Pav > > # This file is part of fromo. > # > # fromo is free software: you can redistribute it and/or modify > # it under the terms of the GNU Lesser General Public License as published by > # the Free Software Foundation, either version 3 of the License, or > # (at your option) any later version. > # > # fromo is distributed in the hope that it will be useful, > # but WITHOUT ANY WARRANTY; without even the implied warranty of > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > # GNU Lesser General Public License for more details. > # > # You should have received a copy of the GNU Lesser General Public License > # along with fromo. If not, see . > > # env var: > # nb: > # see also: > # todo: > # changelog: > # > # Created: 2016.03.25 > # Copyright: Steven E. Pav, 2016-2016 > # Author: Steven E. Pav > # Comments: Steven E. Pav > > # because Hadley says it should be like this. > # see https://github.com/hadley/devtools/wiki/Testing > > library(testthat) > library(fromo) > > test_check("fromo") Error in parse(con, n = -1, srcfile = srcfile, encoding = "UTF-8") : test-trunning.r:448:1: unexpected input 447: for (rp in c(1L,40L)) { 448: << ^ Calls: test_check ... doTryCatch -> lapply -> FUN -> source_file -> parse Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [14s] OK * checking PDF version of manual ... [15s] OK * checking HTML version of manual ... OK * DONE Status: 2 ERRORs, 2 WARNINGs, 1 NOTE