Last updated on 2024-03-28 23:55:18 CET.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 1.7.4 | 15.47 | 54.89 | 70.36 | OK | |
r-devel-linux-x86_64-debian-gcc | 1.7.4 | 13.75 | 40.11 | 53.86 | OK | |
r-devel-linux-x86_64-fedora-clang | 1.7.4 | 88.29 | OK | |||
r-devel-linux-x86_64-fedora-gcc | 1.7.4 | 97.61 | OK | |||
r-devel-windows-x86_64 | 1.7.4 | 17.00 | 56.00 | 73.00 | ERROR | |
r-patched-linux-x86_64 | 1.7.4 | 16.32 | 52.85 | 69.17 | OK | |
r-release-linux-x86_64 | 1.7.4 | 17.63 | 52.07 | 69.70 | OK | |
r-release-macos-arm64 | 1.7.4 | 38.00 | OK | |||
r-release-macos-x86_64 | 1.7.4 | 58.00 | OK | |||
r-release-windows-x86_64 | 1.7.4 | 22.00 | 71.00 | 93.00 | OK | |
r-oldrel-macos-arm64 | 1.7.4 | 29.00 | OK | |||
r-oldrel-windows-x86_64 | 1.7.4 | 22.00 | 74.00 | 96.00 | OK |
Version: 1.7.4
Check: examples
Result: ERROR
Running examples in 'rly-Ex.R' failed
The error most likely occurred in:
> ### Name: yacc
> ### Title: Build a parser
> ### Aliases: yacc
>
> ### ** Examples
>
> TOKENS = c('NAME', 'NUMBER')
> LITERALS = c('=','+','-','*','/', '(',')')
>
> Parser <- R6::R6Class("Parser",
+ public = list(
+ tokens = TOKENS,
+ literals = LITERALS,
+ # Parsing rules
+ precedence = list(c('left','+','-'),
+ c('left','*','/'),
+ c('right','UMINUS')),
+ # dictionary of names
+ names = new.env(hash=TRUE),
+ p_statement_assign = function(doc='statement : NAME "=" expression', p) {
+ self$names[[as.character(p$get(2))]] <- p$get(4)
+ },
+ p_statement_expr = function(doc='statement : expression', p) {
+ cat(p$get(2))
+ cat('\n')
+ },
+ p_expression_binop = function(doc="expression : expression '+' expression
+ | expression '-' expression
+ | expression '*' expression
+ | expression '/' expression", p) {
+ if(p$get(3) == '+') p$set(1, p$get(2) + p$get(4))
+ else if(p$get(3) == '-') p$set(1, p$get(2) - p$get(4))
+ else if(p$get(3) == '*') p$set(1, p$get(2) * p$get(4))
+ else if(p$get(3) == '/') p$set(1, p$get(2) / p$get(4))
+ },
+ p_expression_uminus = function(doc="expression : '-' expression %prec UMINUS", p) {
+ p$set(1, -p$get(3))
+ },
+ p_expression_group = function(doc="expression : '(' expression ')'", p) {
+ p$set(1, p$get(3))
+ },
+ p_expression_number = function(doc='expression : NUMBER', p) {
+ p$set(1, p$get(2))
+ },
+ p_expression_name = function(doc='expression : NAME', p) {
+ p$set(1, self$names[[as.character(p$get(2))]])
+ },
+ p_error = function(p) {
+ if(is.null(p)) cat("Syntax error at EOF")
+ else cat(sprintf("Syntax error at '%s'", p$value))
+ }
+ )
+ )
>
> parser <- rly::yacc(Parser)
Flavor: r-devel-windows-x86_64
Version: 1.7.4
Check: tests
Result: ERROR
Running 'testthat.R' [7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> #! /usr/bin/env Rscript
>
> library(testthat)
> library(rly)
>
> test_check("rly")
Flavor: r-devel-windows-x86_64
Version: 1.7.4
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building 'intro-to-rly.Rmd' using rmarkdown
Flavor: r-devel-windows-x86_64