I'm using the following code in latex for inserting R output from the package verbatim. First I put the output in a text file then call it from the following code,
\verbatiminput{2.txt}
The font size is a bit big. How can I change the font size to footnotesize for all the command \verbatiminput{}?

\verbatim@fontto add size-switching commands.\verbatim@fontis initially defined as\def\verbatim@font{\normalfont\ttfamily \hyphenchar\font\m@ne \@noligs}. This info can be found by searching for "font" in the doc of packageverbatim. – muzimuzhi Z Nov 20 '20 at 09:07