- using R Under development (unstable) (2025-12-04 r89100)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-9) 15.2.0
GNU Fortran (Debian 15.2.0-9) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘officer/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘officer’ version ‘0.7.2’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [2s/2s] OK
- checking package namespace information ... OK
- checking package dependencies ... INFO
Packages suggested but not available for checking:
'doconv', 'gdtools', 'knitr', 'magick', 'rmarkdown'
- 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 ‘officer’ can be installed ... OK
See the install log for details.
- 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking whether startup messages can be suppressed ... [1s/1s] 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 ... [17s/17s] OK
- checking Rd files ... [1s/1s] 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 ... [8s/8s] ERROR
Running examples in ‘officer-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: floating_external_img
> ### Title: Floating external image
> ### Aliases: floating_external_img
>
> ### ** Examples
>
> library(officer)
> srcfile <- file.path(R.home("doc"), "html", "logo.jpg")
> floatimg <- floating_external_img(
+ src = srcfile, height = 1.06 / 2, width = 1.39 / 2,
+ pos_x = 0, pos_y = 0,
+ pos_h_from = "margin", pos_v_from = "margin"
+ )
>
> text <- paste0(
+ " is a floating image in a ",
+ paste0(rep("very ", 30), collapse = ""),
+ " long text!"
+ )
>
> # docx example ----
> x <- read_docx()
> fp_t <- fp_text(font.size = 20, color = "red")
> an_fpar <- fpar(floatimg, ftext(text, fp_t))
> x <- body_add_fpar(x, an_fpar)
> print(x, target = tempfile(fileext = ".docx"))
>
> # rtf example ----
> rtf_doc <- rtf_doc()
> rtf_doc <- rtf_add(rtf_doc, an_fpar)
> print(rtf_doc, target = tempfile(fileext = ".rtf"))
Error in loadNamespace(x) : there is no package called ‘magick’
Calls: print ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [36s/36s] ERROR
Running ‘testthat.R’ [35s/36s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> suppressPackageStartupMessages({
+ library(testthat)
+ library(officer)
+ library(xml2)
+ })
>
> test_check("officer")
Loading required package: withr
Saving _problems/test-pptx-info-310.R
Saving _problems/test-pptx-info-310.R
Saving _problems/test-pptx-info-310.R
Saving _problems/test-pptx-info-310.R
Saving _problems/test-pptx-info-310.R
Saving _problems/test-pptx-info-310.R
Saving _problems/test-pptx-info-310.R
Saving _problems/test-pptx-info-312.R
[ FAIL 8 | WARN 0 | SKIP 22 | PASS 1230 ]
══ Skipped tests (22) ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
• On CRAN (1): 'test-missing-tableStyles.R:2:3'
• empty test (1): 'test-defunct.R:1:1'
• {doconv} is not installed (7): 'test-pptx-add.R:49:3', 'test-pptx-add.R:69:3', 'test-pptx-add.R:150:3', 'test-pptx-add.R:180:3', 'test-pptx-add.R:201:3', 'test-pptx-add.R:242:3',
'test-pptx-info.R:127:3'
• {knitr} is not installed (4): 'test-knitr-utils.R:2:3', 'test-knitr-utils.R:25:3', 'test-knitr-utils.R:71:3', 'test-knitr-utils.R:118:3'
• {magick} is not installed. (9): 'test-images.R:437:3', 'test-images.R:486:3', 'test-images.R:512:3', 'test-images.R:535:3', 'test-images.R:556:3', 'test-images.R:579:3', 'test-images.R:602:3',
'test-images.R:636:3', 'test-to_rtf.R:26:3'
══ Failed tests ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
── Failure ('test-pptx-info.R:310:5'): plot layout properties: layout arg takes numeric index ──
Expected `discarded_plot(x, idx)` not to throw any errors.
Actually got a <packageNotFoundError> with message:
there is no package called 'gdtools'
── Failure ('test-pptx-info.R:310:5'): plot layout properties: layout arg takes numeric index ──
Expected `discarded_plot(x, idx)` not to throw any errors.
Actually got a <packageNotFoundError> with message:
there is no package called 'gdtools'
── Failure ('test-pptx-info.R:310:5'): plot layout properties: layout arg takes numeric index ──
Expected `discarded_plot(x, idx)` not to throw any errors.
Actually got a <packageNotFoundError> with message:
there is no package called 'gdtools'
── Failure ('test-pptx-info.R:310:5'): plot layout properties: layout arg takes numeric index ──
Expected `discarded_plot(x, idx)` not to throw any errors.
Actually got a <packageNotFoundError> with message:
there is no package called 'gdtools'
── Failure ('test-pptx-info.R:310:5'): plot layout properties: layout arg takes numeric index ──
Expected `discarded_plot(x, idx)` not to throw any errors.
Actually got a <packageNotFoundError> with message:
there is no package called 'gdtools'
── Failure ('test-pptx-info.R:310:5'): plot layout properties: layout arg takes numeric index ──
Expected `discarded_plot(x, idx)` not to throw any errors.
Actually got a <packageNotFoundError> with message:
there is no package called 'gdtools'
── Failure ('test-pptx-info.R:310:5'): plot layout properties: layout arg takes numeric index ──
Expected `discarded_plot(x, idx)` not to throw any errors.
Actually got a <packageNotFoundError> with message:
there is no package called 'gdtools'
── Failure ('test-pptx-info.R:312:3'): plot layout properties: layout arg takes numeric index ──
Expected `discarded_plot(x, 1, "Office Theme")` not to throw any errors.
Actually got a <packageNotFoundError> with message:
there is no package called 'gdtools'
[ FAIL 8 | WARN 0 | SKIP 22 | PASS 1230 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [7s/7s] OK
- checking HTML version of manual ... [8s/8s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs