- using R version 4.5.1 (2025-06-13 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 'innsight/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'innsight' version '0.3.2'
- 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 'innsight' can be installed ... OK
See the install log for details.
- 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 ... [4s] OK
- checking whether the package can be loaded with stated dependencies ... [3s] OK
- checking whether the package can be unloaded cleanly ... [3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s] OK
- checking whether the namespace can be unloaded cleanly ... [4s] OK
- checking loading without being on the library search path ... [3s] 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 ... [15s] 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 installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [3s] ERROR
Running examples in 'innsight-Ex.R' failed
The error most likely occurred in:
> ### Name: ConnectionWeights
> ### Title: Connection weights method
> ### Aliases: ConnectionWeights
>
> ### ** Examples
>
> ## Don't show:
> if (torch::torch_is_installed()) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf
+ ## End(Don't show)
+ #----------------------- Example 1: Torch ----------------------------------
+ library(torch)
+
+ # Create nn_sequential model
+ model <- nn_sequential(
+ nn_linear(5, 12),
+ nn_relu(),
+ nn_linear(12, 1),
+ nn_sigmoid()
+ )
+
+ # Create Converter with input names
+ converter <- Converter$new(model,
+ input_dim = c(5),
+ input_names = list(c("Car", "Cat", "Dog", "Plane", "Horse"))
+ )
+
+ # You can also use the helper function for the initialization part
+ converter <- convert(model,
+ input_dim = c(5),
+ input_names = list(c("Car", "Cat", "Dog", "Plane", "Horse"))
+ )
+
+ # Apply method Connection Weights
+ cw <- ConnectionWeights$new(converter)
+
+ # Again, you can use a helper function `run_cw()` for initializing
+ cw <- run_cw(converter)
+
+ # Print the head of the result as a data.frame
+ head(get_result(cw, "data.frame"), 5)
+
+ # Plot the result
+ plot(cw)
+
+ #----------------------- Example 2: Neuralnet ------------------------------
+ if (require("neuralnet")) {
+ library(neuralnet)
+ data(iris)
+
+ # Train a Neural Network
+ nn <- neuralnet((Species == "setosa") ~ Petal.Length + Petal.Width,
+ iris,
+ linear.output = FALSE,
+ hidden = c(3, 2), act.fct = "tanh", rep = 1
+ )
+
+ # Convert the trained model
+ converter <- convert(nn)
+
+ # Apply the Connection Weights method
+ cw <- run_cw(converter)
+
+ # Get the result as a torch tensor
+ get_result(cw, type = "torch.tensor")
+
+ # Plot the result
+ plot(cw)
+ }
+ ## Don't show:
+ }) # examplesIf
> library(torch)
> model <- nn_sequential(nn_linear(5, 12), nn_relu(), nn_linear(12, 1),
+ nn_sigmoid())
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [4s] OK
Running 'testthat.R' [4s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [25s] ERROR
Error(s) in re-building vignettes:
--- re-building 'Example_1_iris.Rmd' using rmarkdown
--- re-building 'Example_2_penguin.Rmd' using rmarkdown
--- re-building 'detailed_overview.Rmd' using rmarkdown
--- re-building 'innsight.Rmd' using rmarkdown
SUMMARY: processing the following files failed:
'Example_1_iris.Rmd' 'Example_2_penguin.Rmd' 'detailed_overview.Rmd'
'innsight.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [32s] OK
- checking HTML version of manual ... [10s] OK
- DONE
Status: 2 ERRORs