- using R Under development (unstable) (2025-09-03 r88788 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.2.0
GNU Fortran (GCC) 14.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'torchvision/DESCRIPTION' ... OK
- this is package 'torchvision' version '0.7.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 hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'torchvision' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package 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 ... [3s] OK
- checking whether the package can be loaded with stated dependencies ... [2s] OK
- checking whether the package can be unloaded cleanly ... [2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s] OK
- checking whether the namespace can be unloaded cleanly ... [3s] OK
- checking loading without being on the library search path ... [2s] 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 ... [11s] OK
- checking Rd files ... [2s] 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 examples ... [3s] ERROR
Running examples in 'torchvision-Ex.R' failed
The error most likely occurred in:
> ### Name: draw_segmentation_masks
> ### Title: Draw segmentation masks
> ### Aliases: draw_segmentation_masks draw_segmentation_masks.default
> ### draw_segmentation_masks.torch_tensor
> ### draw_segmentation_masks.image_with_segmentation_mask
>
> ### ** Examples
>
> if (torch::torch_is_installed()) {
+ image_tensor <- torch::torch_randint(170, 250, size = c(3, 360, 360))$to(torch::torch_uint8())
+ mask <- torch::torch_tril(torch::torch_ones(c(360, 360)))$to(torch::torch_bool())
+ masked_image <- draw_segmentation_masks(image_tensor, mask, alpha = 0.2)
+ tensor_image_browse(masked_image)
+ }
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [3s] OK
Running 'testthat.R' [3s]
- checking PDF version of manual ... [28s] OK
- checking HTML version of manual ... [15s] OK
- DONE
Status: 1 ERROR