\begin{circuit}0

%Inductor
\cc \L1 {$v_L(t)$} . d
\- 2 d \P1

\atpin L1.
\- 2 u \P2
\- 1 l \P3

% resistor
\nl \cc \spring1 {$v_R(t)$} l
\- 1 l

% Cierre
\vtopin P1
\htopin P1

%Etiqueta resistor
\atpin spring1l \shift 2 -1.8
\put{$R$}

% Tension inductor
\atpin L1. \shift 0.5 0
\put{$+$}

\atpin L1* \shift 0.5 -0.5
\put{$-$}

% Tension resistor
\atpin spring1l \shift -1 0.8
\put{$+$}

\atpin spring1r \shift 0 0.8
\put{$-$}

%Corriente de malla
\atpin spring1l \shift -0.5 -3.5
\put{$\xymatrix{  &  \\ \ar@/^1pc/[ur]_{i(t)}}$}



\end{circuit}