* using log directory 'd:/Rcompile/CRANpkg/local/4.5/rbranding.Rcheck'
* using R version 4.5.3 (2026-03-11 ucrt)
* using platform: x86_64-w64-mingw32
* R was compiled by
    gcc.exe (GCC) 14.3.0
    GNU Fortran (GCC) 14.3.0
* running under: Windows Server 2022 x64 (build 20348)
* using session charset: UTF-8
* checking for file 'rbranding/DESCRIPTION' ... OK
* this is package 'rbranding' version '0.1.1'
* 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 hidden files and directories ... OK
* checking for portable file names ... OK
* checking whether package 'rbranding' can be installed ... OK
* 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 ... [1s] OK
* checking whether the package can be loaded with stated dependencies ... [0s] OK
* checking whether the package can be unloaded cleanly ... [0s] OK
* checking whether the namespace can be loaded with stated dependencies ... [0s] OK
* checking whether the namespace can be unloaded cleanly ... [1s] OK
* checking loading without being on the library search path ... [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 ... [3s] OK
* checking Rd files ... [1s] OK
* checking Rd metadata ... 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 installed files from 'inst/doc' ... OK
* checking files in 'vignettes' ... OK
* checking examples ... [4s] ERROR
Running examples in 'rbranding-Ex.R' failed
The error most likely occurred in:

> ### Name: brand_add_logo
> ### Title: Add Brand Logo to ggplot2 Plot
> ### Aliases: brand_add_logo
> 
> ### ** Examples
> 
> {
+ # First set the brand theme to load configuration
+ old_wd <- getwd()
+ setwd(tempdir()) # Change to temp directory for example
+ brand_init()
+ get_brand_public()
+ get_template("blank")
+ brand_set_ggplot()
+ 
+ # Create a plot and add logo
+ library(ggplot2)
+ ggplot(mtcars, aes(x = mpg, y = wt)) +
+   geom_point() +
+   labs(title = "Example Plot") +
+   brand_add_logo()
+ 
+ # Customize logo position and size
+ ggplot(mtcars, aes(x = mpg, y = wt)) +
+   geom_point() +
+   labs(title = "Example Plot") +
+   brand_add_logo(x = 0.1, y = 0.9, size = 0.08)
+ 
+ setwd(old_wd) # Restore original working directory
+ }
Created files './rbranding_config.yml' and placeholder '_brand.yml' in current working directory
Checking remote version... 
Warning in utils::download.file(remote_file, destfile = tmp_file, quiet = TRUE) :
  cannot open URL 'https://raw.githubusercontent.com/EpiForeSITE/rbranding/main/_brand.yml': HTTP status was '429 Unknown Error'
Error downloading file: Error in utils::download.file(remote_file, destfile = tmp_file, quiet = TRUE): cannot open URL 'https://raw.githubusercontent.com/EpiForeSITE/rbranding/main/_brand.yml'

Error in if (compare_branding_files(local_file, remote_file)) { : 
  missing value where TRUE/FALSE needed
Calls: get_brand_public -> update_branding_file
Execution halted
* checking for unstated dependencies in 'tests' ... OK
* checking tests ... [4s] ERROR
  Running 'tinytest.R' [4s]
Running the tests in 'tests/tinytest.R' failed.
Complete output:
  > if (requireNamespace("tinytest", quietly = TRUE)) {
  +   tinytest::test_package("rbranding")
  + }
  
  test_brand_init.R.............    0 tests    
  test_brand_init.R.............    1 tests OK 
  test_brand_init.R.............    1 tests OK 
  test_brand_init.R.............    1 tests OK 
  test_brand_init.R.............    2 tests OK 
  test_brand_init.R.............    3 tests OK 
  test_brand_init.R.............    4 tests OK 
  test_brand_init.R.............    4 tests OK 
  test_brand_init.R.............    4 tests OK 
  test_brand_init.R.............    4 tests OK 
  test_brand_init.R.............    4 tests OK 
  test_brand_init.R.............    4 tests OK 
  test_brand_init.R.............    5 tests OK 
  test_brand_init.R.............    6 tests OK 
  test_brand_init.R.............    6 tests OK 
  test_brand_init.R.............    7 tests OK 
  test_brand_init.R.............    8 tests OK 75ms
  
  test_get_brand.R..............    0 tests    
  test_get_brand.R..............    0 tests    
  test_get_brand.R..............    1 tests 1 fails 
  test_get_brand.R..............    1 tests 1 fails Error in brand_contents_1$meta : $ operator is invalid for atomic vectors
  Calls: <Anonymous> ... FUN -> eval -> eval -> expect_equal -> fun -> all.equal
  Execution halted
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes ... OK
* checking re-building of vignette outputs ... [14s] ERROR
Error(s) in re-building vignettes:
--- re-building 'ggplot2-integration.Rmd' using rmarkdown

Quitting from ggplot2-integration.Rmd:48-68 [unnamed-chunk-2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `if (compare_branding_files(local_file, remote_file)) ...`:
! missing value where TRUE/FALSE needed
---
Backtrace:
    ▆
 1. └─rbranding::get_brand_public()
 2.   └─rbranding:::update_branding_file(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'ggplot2-integration.Rmd' failed with diagnostics:
missing value where TRUE/FALSE needed
--- failed re-building 'ggplot2-integration.Rmd'

--- re-building 'rbranding.Rmd' using rmarkdown
--- finished re-building 'rbranding.Rmd'

--- re-building 'templates.Rmd' using rmarkdown
--- finished re-building 'templates.Rmd'

SUMMARY: processing the following file failed:
  'ggplot2-integration.Rmd'

Error: Vignette re-building failed.
Execution halted

* checking PDF version of manual ... [15s] OK
* checking HTML version of manual ... [1s] OK
* DONE
Status: 3 ERRORs
