- using R Under development (unstable) (2022-06-27 r82528)
- using platform: x86_64-pc-linux-gnu (64-bit)
- using session charset: UTF-8
- checking for file ‘OpasnetUtils/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘OpasnetUtils’ version ‘1.3’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘OpasnetUtils’ can be installed ... OK
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [21s/36s] OK
- checking Rd files ... [1s/2s] 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 ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking examples ... [3s/4s] ERROR
Running examples in ‘OpasnetUtils-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: Check
> ### Title: Ovariable Checks
> ### Aliases: Check CheckCollapse CheckDecisions CheckInput CheckMarginals
>
> ### ** Examples
>
> #library(OpasnetUtils)
> #
> Deca <- new(
+ "odecision",
+ dectable = data.frame(
+ Decision = "Dec1",
+ Option = c("do it", "BAU"),
+ Cell = c("",""),
+ Change = c("Multiply", "Identity"),
+ Result = c("2", "1")
+ )
+ )
> openv.setN(10)
> a <- Ovariable("a", data = data.frame(A = c("A", "B"), Result = c("1-2","2-4")))
>
> b <- Ovariable("b", formula = function(...){2*a}, dependencies = data.frame(Name = "a"))
>
> b <- EvalOutput(b)
Warning in gregexpr(paste("\\+-|", rawToChar(as.raw(177)), sep = ""), res.char) :
unable to translate '\+-|<b1>' to a wide string
Error in ComputeDependencies(variable@dependencies, fillna = fillna, indent = indent + :
Evaluating a failed! Error: regular expression is invalid
Calls: EvalOutput -> ComputeDependencies
Execution halted
- checking PDF version of manual ... OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR