[edit: mentioned the maintainers, improve text, switching to Xenial is no workaround]
Hi @jimhester and @jeroen,
Since approx April 2019, I encounter that a Travis build fails due to cutting the Roxygen2 documentation’s examples:
For example here, look at the last two lines:
* checking examples ... ERROR
Running examples in ‘mcbette-Ex.R’ failed
The error most likely occurred in:
> ### Name: est_marg_liks_from_models
> ### Title: Estimate the marginal likelihoods for all combinations of site,
> ### clock and tree models
> ### Aliases: est_marg_liks_from_models
>
> ### ** Examples
>
> # Use an example FASTA file
> fasta_filename <- system.file("extdata", "simple.fas", package = "mcbette")
[...]
> expect_true(is.factor(df$tree_prior_name))
> expect_true(!is.factor(df$marg_log_lik))
> expect_t
Error: object 'expect_t' not found
Clearly, if the documentation would be …
expect_t
… then the error message makes excellent sense.
Or here 11 days ago, again in the last two lines:
> ### Name: create_test_cand_experiment
> ### Title: Create a valid testing pirouette candidate experiment.
> ### Aliases: create_test_cand_experiment
>
> ### ** Examples
>
> library(testthat)
>
> experiment <- create_test_cand_experiment()
>
> expect_true("inference_conditions" %in% names(experiment))
> expect_true("inf
+ Error: unexpected end of input
In both cases, of course, the documentation was complete and worked locally.
Switching to using Xenial (i.e. add dist: xenial
to your .travis.yml
) and back does not work.
I wonder if it has to do with my documentation being more extensive than most?
I hope you can help
Cheers, Richel Bilderbeek