\ProvidesPackage{language}

\RequirePackage{xstring}
\RequirePackage{xcolor}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Looking for a consistent typography for language elements.

\newcommand{\R}{\mbox{\sf{R}}}
\newcommand{\Rstudio}{\mbox{\sf{R}Studio}}
\newcommand{\RStudio}{\mbox{\sf{R}Studio}}
\newcommand{\Sage}{\mbox{\sf{Sage}}}

\newcommand{\variable}[1]{{\color{green!50!black}\texttt{#1}}}
\newcommand{\dataframe}[1]{{\color{blue!80!black}\texttt{#1}}}
\newcommand{\function}[1]{{\color{purple!75!blue}\texttt{\StrSubstitute{#1}{()}{}()}}}
\newcommand{\option}[1]{{\color{brown!80!black}\texttt{#1}}}
\newcommand{\pkg}[1]{{\color{red!80!black}\texttt{#1}}}
\providecommand{\code}[1]{}
\renewcommand{\code}[1]{{\color{blue!80!black}\texttt{#1}}}

\newcommand{\file}[1]{{\tt #1}}

% This looks really hokey.  Probably need to redefine this.
\providecommand{\model}[2]{}
\renewcommand{\model}[2]{{$\,$\hbox{#1}\ \ensuremath{\sim}\ \hbox{#2}}}

% These should be considered deprecated -- cease and disist
\providecommand{\VN}[1]{}
\renewcommand{\VN}[1]{{\color{green!50!black}\texttt{#1}}}
\newcommand{\vn}[1]{{\color{green!50!black}\texttt{#1}}}
\newcommand{\DFN}[1]{{\color{blue!80!black}\texttt{#1}}}
\newcommand{\dfn}[1]{{\color{blue!80!black}\texttt{#1}}}

