Rests are entered like notes, with the note name r, so just type r followed by the duration.
r
\version "2.24.0" %% http://lsr.di.unimi.it/LSR/Item?id=158 { r1 r2 r4 r8 }