Running 'testthat.R' [166s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(nndiagram)
  > 
  > test_check("nndiagram")
  % To make the code work in any 'LaTeX' editor, users need to install and import two 'TeX' packages in the setting, including 'TikZ'. 
  % Users are recommended to try the output 'LaTeX' code in Overleaf. 
   
  \usepackage{tikz} 
  \usepackage{pgfplots} 
  \pgfplotsset{compat=1.18} 
  \begin{figure}[!ht] 
  \centering 
  \begin{tikzpicture}[scale=1] 
    \begin{axis}[ 
        axis on top = true, 
        axis x line = bottom, 
        axis y line = left, 
        xlabel = $$, 
        ylabel = $$, 
        ymin = , 
        ymax =  
    ] 
    \addplot[ 
        domain=-10:10, 
        samples=100 
    ] {1/(1+exp(-x))}; 
    \end{axis} 
  \end{tikzpicture} 
  \caption{Sigmoid Function} 
  \label{} 
  \end{figure} 
  % To make the code work in any 'LaTeX' editor, users need to install and import two 'TeX' packages in the setting, including 'TikZ'. 
  % Users are recommended to try the output 'LaTeX' code in Overleaf. 
   
  \usepackage{tikz} 
  \usepackage{ifthen} 
  \def\layersep{2.5cm} 
  \newcommand*\circled[1]{\tikz[baseline=(char.base)]{ 
    \node[shape=rectangle,inner sep=3pt, draw=black!100, fill= black!25] (char) {#1};}} 
   
  \begin{figure}[!ht] 
  \centering 
  \begin{tikzpicture}[shorten >=1pt,->,draw=black!100, node distance=\layersep, scale=1] 
    \tikzstyle{every pin edge}=[<-,shorten <=1pt]; 
    \tikzstyle{neuron}=[circle, draw=black!100, minimum size=17pt,inner sep=0pt]; 
    \tikzstyle{input neuron}=[neuron]; 
    \tikzstyle{output neuron}=[neuron]; 
    \tikzstyle{hidden neuron}=[neuron]; 
    \tikzstyle{annot} = [text width=4em, text centered, text=black!100] 
   
    % drawing neurons 
    \foreach \name / \y in {1,...,3} 
        \node [input neuron, pin=left:\textcolor{black!100}{Input \y}] (I-\name) at (0,-\y) {};
    \foreach \name / \y in {1/1,2/2,3/3} 
        \path[yshift=0cm] 
            node[hidden neuron] (H-\name) at (1* \layersep,-\y cm) {};
    \foreach \name / \y in {4/1,5/2,6/3} 
        \path[yshift=0cm] 
            node[hidden neuron] (H-\name) at (2* \layersep,-\y cm) {};
    \node[output neuron,pin={[pin edge={->}]right:\textcolor{black!100}{Output}}, right of=H-5, yshift=0cm] (O) {}; 
  
     % drawing arrows 
    \foreach \source in {1,...,3} 
        \foreach \dest in {1,...,3}
             \path (I-\source) edge (H-\dest); 
    \foreach \source in {1,...,3} 
        \foreach \dest in {4,...,6}
             \path (H-\source) edge (H-\dest); 
    \foreach \source in {4,...,6}
             \path (H-\source) edge (O);
   
     % annotations 
    \node[annot,above of=I-1, node distance=2cm] {Input layer}; 
    \node[annot,above of=I-1, node distance=1cm] {$\circled{3}$}; 
    \node[annot,above of=H-1, node distance=2cm] (hl1) {Hidden layer 1}; 
    \node[annot,above of=H-1, node distance=1cm] (hl1) {$\circled{3}$}; 
    \node[annot,above of=H-4, node distance=2cm] (hl2) {Hidden layer 2}; 
    \node[annot,above of=H-4, node distance=1cm] (hl2) {$\circled{3}$}; 
    \node[annot,above of =O, node distance=3cm] {Output layer}; 
    \node[annot,above of =O, node distance=2cm] {$\circled{1}$}; 
  
  \end{tikzpicture} 
  \caption{} 
  \label{} 
  \end{figure} 
  % To make the code work in any 'LaTeX' editor, users need to install and import two 'TeX' packages in the setting, including 'TikZ'. 
  % Users are recommended to try the output 'LaTeX' code in Overleaf. 
   
  \usepackage{tikz} 
  \def\layersep{2.5cm} 
  \newcommand*\circled[1]{\tikz[baseline=(char.base)]{ 
    \node[shape=rectangle,inner sep=3pt, draw=black!100, fill= black!25] (char) {#1};}} 
   
  \begin{figure}[!ht] 
  \centering 
  \begin{tikzpicture}[shorten >=1pt,draw=black!100, node distance=\layersep, scale=1] 
    \tikzstyle{every pin edge}=[<-,shorten <=1pt, draw=black!100]; 
    \tikzstyle{neuron}=[circle, draw=black!100, minimum size=17pt,inner sep=0pt]; 
    \tikzstyle{input neuron}=[neuron]; 
    \tikzstyle{output neuron}=[neuron]; 
    \tikzstyle{hidden neuron}=[neuron]; 
    \tikzstyle{coveruped neuron}=[neuron, draw=black!25]; 
    \tikzstyle{annot} = [text width=4em, text centered, text=black!100] 
   
    % drawing neurons 
    \foreach \name / \y in {1/1,2/2,3/3} 
        \node[input neuron, pin=left:\textcolor{black!100}{Input \y}] (I-\name) at (0,-1.5-\y) {}; 
    \foreach \name / \y in {2/2,3/3,4/4,5/5,6/6} 
        \path[yshift=0cm] 
            node[hidden neuron] (H-\name) at (1* \layersep,-\y cm) {}; 
    \foreach \name / \y in {7/1,8/2,9/3,10/4,11/5,12/6} 
        \path[yshift=0cm] 
            node[hidden neuron] (H-\name) at (2* \layersep,-\y cm) {}; 
    \foreach \name / \y in {1/1} 
        \path[yshift=0cm] 
            node[coveruped neuron] (H-\name) at (1* \layersep,-\y cm) {}; 
    \node[output neuron,pin={[pin edge={->}]right:\textcolor{black!100}{Output}}, right of=H-9, yshift=-0.5cm] (O) {}; 
   
    % drawing arrows 
    \foreach \source in {1,2,3} 
        \foreach \dest in {2,3,4,5,6} 
            \path [->] (I-\source) edge (H-\dest); 
    \foreach \source in {1,...,3} 
        \foreach \dest in {1} 
            \path [->] (I-\source) edge [draw=black!25] (H-\dest); 
    \foreach \source in {2,3,4,5,6} 
        \foreach \dest in {7,8,9,10,11,12} 
            \path [->] (H-\source) edge (H-\dest); 
    \foreach \source in {1} 
        \foreach \dest in {7,...,12} 
            \path [->] (H-\source) edge [draw=black!25] (H-\dest); 
    \foreach \source in {7,8,9,10,11,12} 
        \path [->] (H-\source) edge (O); 
  
     % annotations 
    \node[annot,above of=I-1, node distance=3.5cm] {Input layer}; 
    \node[annot,above of=I-1, node distance=2.5cm] {$\circled{3}$}; 
    \node[annot,above of=H-1, node distance=2cm] (hl1) {Hidden layer 1}; 
    \node[annot,above of=H-1, node distance=1cm] (hl1) {$\circled{6}$}; 
    \node[annot,above of=H-7, node distance=2cm] (hl2) {Hidden layer 2}; 
    \node[annot,above of=H-7, node distance=1cm] (hl2) {$\circled{6}$}; 
    \node[annot,above of =O, node distance=4.5cm] {Output layer}; 
    \node[annot,above of =O, node distance=3.5cm] {$\circled{1}$}; 
  
  \end{tikzpicture} 
  \caption{} 
  \label{} 
  \end{figure} 
  % To make the code work in any 'LaTeX' editor, users need to install and import two 'TeX' packages in the setting, including 'TikZ'. 
  % Users are recommended to try the output 'LaTeX' code in Overleaf. 
   
  \usepackage{tikz} 
  \def\layersep{2.5cm} 
  \newcommand*\circled[1]{\tikz[baseline=(char.base)]{ 
    \node[shape=rectangle,inner sep=3pt, draw=black!100, fill= black!25] (char) {#1};}} 
   
  \begin{figure}[!ht] 
  \centering 
  \begin{tikzpicture}[shorten >=1pt,draw=black!100, node distance=\layersep, scale=1] 
    \tikzstyle{every pin edge}=[<-,shorten <=1pt]; 
    \tikzstyle{neuron}=[circle, draw=black!100, minimum size=17pt,inner sep=0pt]; 
    \tikzstyle{invisible neuron}=[draw=none, scale=2]; 
    \tikzstyle{input neuron}=[neuron]; 
    \tikzstyle{output neuron}=[neuron]; 
    \tikzstyle{hidden neuron}=[neuron]; 
    \tikzstyle{annot} = [text width=4em, text centered, text=black!100] 
   
    % drawing neurons 
    \foreach \name / \y in {1,...,3} 
        \node [input neuron, pin=left:\textcolor{black!100}{Input \y}] (I-\name) at (0,-1-\y) {};
    \node[hidden neuron,yshift=0cm] (H-1) at (1* \layersep, -1 cm) {}; 
    \node[invisible neuron,yshift=0cm] (H-2) at (1* \layersep, -2 cm) {}; 
    \node[hidden neuron,yshift=0cm] (H-3) at (1* \layersep, -3 cm) {}; 
    \node[invisible neuron,yshift=0cm] (H-4) at (1* \layersep, -4 cm) {}; 
    \node[hidden neuron,yshift=0cm] (H-5) at (1* \layersep, -5 cm) {};
    \node[hidden neuron,yshift=0cm] (H-6) at (2* \layersep, -1 cm) {}; 
    \node[invisible neuron,yshift=0cm] (H-7) at (2* \layersep, -2 cm) {}; 
    \node[hidden neuron,yshift=0cm] (H-8) at (2* \layersep, -3 cm) {}; 
    \node[invisible neuron,yshift=0cm] (H-9) at (2* \layersep, -4 cm) {}; 
    \node[hidden neuron,yshift=0cm] (H-10) at (2* \layersep, -5 cm) {};
    \node[output neuron,pin={[pin edge={->}]right:\textcolor{black!100}{Output}}, right of=H-8, yshift=0cm] (O) {}; 
    \draw[line width=3pt, loosely dotted, dash pattern=on 0.1pt off 10pt, line cap=round] ([yshift=1ex]H-2.north) -- ([yshift=-1ex]H-2.south); 
    \draw[line width=3pt, loosely dotted, dash pattern=on 0.1pt off 10pt, line cap=round] ([yshift=1ex]H-4.north) -- ([yshift=-1ex]H-4.south); 
    \draw[line width=3pt, loosely dotted, dash pattern=on 0.1pt off 10pt, line cap=round] ([yshift=1ex]H-7.north) -- ([yshift=-1ex]H-7.south); 
    \draw[line width=3pt, loosely dotted, dash pattern=on 0.1pt off 10pt, line cap=round] ([yshift=1ex]H-9.north) -- ([yshift=-1ex]H-9.south); 
  
     % drawing arrows 
    \foreach \source in {1,...,3} 
        \foreach \dest in {1,3,5} 
            \path [->] (I-\source) edge (H-\dest);
    \foreach \source in {1,3,5} 
        \foreach \dest in {6,8,10} 
            \path [->] (H-\source) edge (H-\dest);
    \foreach \source in {6,8,10} 
        \path [->] (H-\source) edge (O); 
   
    % annotations 
    \node[annot,above of=I-1, node distance=3cm] {Input layer}; 
    \node[annot,above of=I-1, node distance=2cm] {$\circled{3}$}; 
    \node[annot,above of=H-1, node distance=2cm] (hl1) {Hidden layer 1}; 
    \node[annot,above of=H-1, node distance=1cm] (hl1) {$\circled{6}$}; 
    \node[annot,above of=H-6, node distance=2cm] (hl2) {Hidden layer 2}; 
    \node[annot,above of=H-6, node distance=1cm] (hl2) {$\circled{6}$}; 
    \node[annot,above of =O, node distance=4cm] {Output layer}; 
    \node[annot,above of =O, node distance=3cm] {$\circled{1}$}; 
  
  \end{tikzpicture} 
  \caption{} 
  \label{} 
  \end{figure} 
  [ FAIL 0 | WARN 0 | SKIP 0 | PASS 4 ]
  > 
  > proc.time()
     user  system elapsed 
     0.87    0.20    1.06