- using R Under development (unstable) (2025-12-19 r89201)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 21.1.8
flang version 21.1.8
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘fplot/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘fplot’ version ‘1.1.0’
- package encoding: UTF-8
- 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 whether package ‘fplot’ can be installed ... [48s/67s] OK
See the install log for details.
- used C++ compiler: ‘clang version 21.1.8’
- checking installed package size ... OK
- checking package directory ... 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 whether startup messages can be suppressed ... 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 ... [33s/51s] OK
- checking Rd files ... NOTE
checkRd: (-1) plot_lines.Rd:66: Lost braces
66 | moderator. By default it is equal to \8code{c(19, 17, 15, 8, 5, 4, 3, 1)}.}
| ^
- 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [5s/13s] ERROR
Running examples in ‘fplot-Ex.R’ failed
The error most likely occurred in:
> ### Name: plot_distr
> ### Title: Plot distributions, possibly conditional
> ### Aliases: plot_distr
>
> ### ** Examples
>
>
> # Data on publications from U.S. institutions
> data(us_pub_econ)
>
> # 0) Let's set a dictionary for a better display of variables
> setFplot_dict(c(institution = "U.S. Institution", jnl_top_25p = "Top 25% Pub.",
+ jnl_top_5p = "Top 5% Pub.", Frequency = "Publications"))
>
> # 1) Let's plot the distribution of publications by institutions:
> plot_distr(~institution, us_pub_econ)
>
> # When there is only the variable, you can use a vector instead:
> plot_distr(us_pub_econ$institution)
>
> # 2) Now the production of institution weighted by journal quality
> plot_distr(jnl_top_5p ~ institution, us_pub_econ)
>
> # You can plot several variables:
> plot_distr(1 + jnl_top_25p + jnl_top_5p ~ institution, us_pub_econ)
>
> # 3) Let's plot the journal distribution for the top 3 institutions
>
> # We can get the data from the previous graph
> graph_data = plot_distr(jnl_top_5p ~ institution, us_pub_econ, plot = FALSE)
> # And then select the top universities
> top3_instit = graph_data$x[1:3]
> top5_instit = graph_data$x[1:5] # we'll use it later
>
> # Now the distribution of journals
> plot_distr(~ journal | institution, us_pub_econ[institution %in% top3_instit])
> # Alternatively, you can use the argument mod.select:
> plot_distr(~ journal | institution, us_pub_econ, mod.select = top3_instit)
>
> # 3') Same graph as before with "other" column, 5 institutions
> plot_distr(~ journal | institution, us_pub_econ,
+ mod.select = top5_instit, other = TRUE)
>
> #
> # Example with continuous data
> #
>
> # regular histogram
> plot_distr(iris$Sepal.Length)
>
> # now splitting by species:
> plot_distr(~ Sepal.Length | Species, iris)
>
> # idem but the three distr. are separated:
> plot_distr(~ Sepal.Length | Species, iris, mod.method = "split")
>
> # Now the three are stacked
> plot_distr(~ Sepal.Length | Species, iris, mod.method = "stack")
Error in `[.data.table`(new_coords, , `:=`(ytop_new, cumsum(ytop)), by = x_nb) :
attempt access index 7/7 in VECTOR_ELT
Calls: plot_distr -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... OK
- checking PDF version of manual ... [8s/15s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR, 1 NOTE