PRL-PRG / genthat

A record-replay framework for the R programming language
14 stars 8 forks source link

Tracing vignette from jsonlite fails #59

Open fikovnik opened 7 years ago

fikovnik commented 7 years ago

R version 3.4.0 (2017-04-21) -- "You Stupid Darkness"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> tools::buildVignettes(package='jsonlite', dir='/tmp/Rtmp3KdcW4/R_genthat_1470f4ef2/jsonlite', quiet=FALSE)

processing file: json-aaquickstart.Rmd

  |                                                                       
  |                                                                 |   0%
  |                                                                       
  |...                                                              |   5%
   inline R code fragments

  |                                                                       
  |.......                                                          |  11%
label: unnamed-chunk-1 (with options) 
List of 1
 $ echo: logi FALSE

  |                                                                       
  |..........                                                       |  16%
  ordinary text without R code

  |                                                                       
  |..............                                                   |  21%
label: unnamed-chunk-2 (with options) 
List of 1
 $ message: logi FALSE

Loading required package: methods
Invoking genthat package loading hook
Decorating function: S4tolist
Decorating function: all.identical
Decorating function: apply_by_pages
Decorating function: apply_by_pages2
Decorating function: as.scalar
Decorating function: asJSON
Decorating function: asjson_array_fun
Decorating function: asjson_numeric_fun
Decorating function: base64_dec
Decorating function: base64_enc
Decorating function: cleannames
Decorating function: collapse
Decorating function: collapse_array
Decorating function: collapse_object
Decorating function: deparse_vector
Decorating function: deparse_vector_c
Decorating function: deparse_vector_old
Decorating function: deparse_vector_r
Decorating function: evaltext
Decorating function: fixNativeSymbol
Decorating function: flatten
Decorating function: fromJSON
Decorating function: fromJSON_string
Decorating function: givename
Decorating function: integer64_to_char
Decorating function: is.arraylist
Decorating function: is.datelist
Decorating function: is.matrixlist
Decorating function: is.namedlist
Decorating function: is.namedlistnotdf
Decorating function: is.recordlist
Decorating function: is.scalarlist
Decorating function: is.unnamedlist
Decorating function: is_datelist
Decorating function: is_recordlist_c
Decorating function: is_recordlist_r
Decorating function: is_scalarlist_c
Decorating function: is_scalarlist_r
Decorating function: list_to_vec
Decorating function: load_s4_class
Decorating function: loadpkg
Decorating function: makesymbol
Decorating function: minify
Decorating function: null_to_na
Decorating function: num_to_char
Decorating function: num_to_char_R
Decorating function: pack
Decorating function: parseJSON
Decorating function: parse_con
Decorating function: parse_date
Decorating function: parse_string
Decorating function: post_process
Decorating function: prettify
Decorating function: print.json
Decorating function: print.scalar
Decorating function: raw_to_json
Decorating function: rbind.pages
Decorating function: rbind_pages
Decorating function: read_json
Decorating function: reformat
Decorating function: row_collapse
Decorating function: row_collapse_object
Decorating function: serializeJSON
Decorating function: simplify
Decorating function: simplifyDataFrame
Decorating function: stop
Decorating function: stream_in
Decorating function: stream_out
Decorating function: stream_out_page
Decorating function: toJSON
Decorating function: transpose_list
Decorating function: trim
Decorating function: unbox
Decorating function: unescape_unicode
Decorating function: unpack
Decorating function: unserializeJSON
Decorating function: utf8conv
Decorating function: validate
Decorating function: warn_keep_vec_names
Decorating function: wrapinquotes
Decorating function: write_json
Decorated 81 in 0.103
Quitting from lines 29-31 (json-aaquickstart.Rmd) 

Error: processing vignette 'json-aaquickstart.Rmd' failed with diagnostics:
call to standardGeneric("asJSON") apparently not from the body of that generic function
7: (function () 
   traceback(2))()
6: stop(gettextf("processing vignette '%s' failed with diagnostics:\n%s", 
       file, conditionMessage(e)), domain = NA, call. = FALSE)
5: value[[3L]](cond)
4: tryCatchOne(expr, names, parentenv, handlers[[1L]])
3: tryCatchList(expr, classes, parentenv, handlers)
2: tryCatch({
       engine$weave(file, quiet = quiet, encoding = enc)
       setwd(startdir)
       find_vignette_product(name, by = "weave", engine = engine)
   }, error = function(e) {
       stop(gettextf("processing vignette '%s' failed with diagnostics:\n%s", 
           file, conditionMessage(e)), domain = NA, call. = FALSE)
   })
1: tools::buildVignettes(package = "jsonlite", dir = "/tmp/Rtmp3KdcW4/R_genthat_1470f4ef2/jsonlite", 
       quiet = FALSE)
> 
Invoking genthat package unloading hook
Saved replacements in 0.00099999999999989
fikovnik commented 7 years ago

There might a problem with tracing S4 functions:

toJSON(mtcars)
Error in asJSON(x, dataframe = dataframe, Date = Date, POSIXt = POSIXt,  : 
  call to standardGeneric("asJSON") apparently not from the body of that generic function