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