Last updated on 2025-10-24 12:50:50 CEST.
| Package | ERROR | OK |
|---|---|---|
| innsight | 3 | 10 |
Current CRAN status: ERROR: 3, OK: 10
Version: 0.3.2
Check: examples
Result: 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())
Flavors: r-devel-windows-x86_64, r-release-windows-x86_64
Version: 0.3.2
Check: re-building of vignette outputs
Result: 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
Flavors: r-devel-windows-x86_64, r-release-windows-x86_64
Version: 0.3.2
Check: examples
Result: 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())
Error in (function (size, options, memory_format) :
Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
Calls: <Anonymous> ... call_c_function -> do_call -> do.call -> <Anonymous>
Execution halted
Flavor: r-oldrel-windows-x86_64
Version: 0.3.2
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building 'Example_1_iris.Rmd' using rmarkdown
Quitting from Example_1_iris.Rmd:25-30 [unnamed-chunk-2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `cpp_torch_manual_seed()`:
! Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
---
Backtrace:
▆
1. └─torch::torch_manual_seed(1111)
2. └─torch:::cpp_torch_manual_seed(as.character(seed))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'Example_1_iris.Rmd' failed with diagnostics:
Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
--- failed re-building 'Example_1_iris.Rmd'
--- re-building 'Example_2_penguin.Rmd' using rmarkdown
Quitting from Example_2_penguin.Rmd:27-32 [unnamed-chunk-2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `cpp_torch_manual_seed()`:
! Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
---
Backtrace:
▆
1. └─torch::torch_manual_seed(111)
2. └─torch:::cpp_torch_manual_seed(as.character(seed))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'Example_2_penguin.Rmd' failed with diagnostics:
Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
--- failed re-building 'Example_2_penguin.Rmd'
--- re-building 'detailed_overview.Rmd' using rmarkdown
Quitting from detailed_overview.Rmd:162-179 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error:
! Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
---
Backtrace:
▆
1. ├─torch::nn_sequential(...)
2. │ └─Module$new(...)
3. │ └─torch (local) initialize(...)
4. │ └─rlang::list2(...)
5. └─torch::nn_conv2d(3, 5, c(2, 2), stride = 2, padding = 3)
6. └─Module$new(...)
7. └─torch (local) initialize(...)
8. └─super$initialize(...)
9. ├─torch::nn_parameter(...)
10. │ └─torch:::is_torch_tensor(x)
11. └─torch::torch_empty(out_channels, in_channels%/%groups, !!!kernel_size)
12. ├─base::do.call(.torch_empty, args)
13. └─torch (local) `<fn>`(options = `<named list>`, size = `<list>`)
14. └─torch:::call_c_function(...)
15. └─torch:::do_call(f, args)
16. ├─base::do.call(fun, args)
17. └─torch (local) `<fn>`(size = `<list>`, options = `<named list>`, memory_format = NULL)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'detailed_overview.Rmd' failed with diagnostics:
Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
--- failed re-building 'detailed_overview.Rmd'
--- re-building 'innsight.Rmd' using rmarkdown
Quitting from innsight.Rmd:213-234 [unnamed-chunk-7]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `cpp_torch_manual_seed()`:
! Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
---
Backtrace:
▆
1. └─torch::torch_manual_seed(123)
2. └─torch:::cpp_torch_manual_seed(as.character(seed))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'innsight.Rmd' failed with diagnostics:
Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
--- failed re-building 'innsight.Rmd'
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
Flavor: r-oldrel-windows-x86_64