After the latest update to RStudio "Ghost Orchid" (Build 372) the RMarkdown below fails to compile to pdf on macOS Monterey, as well as on RStudio cloud.
An identical file compiles fine on a different machine running previous versions of both RStudio and macOS ("Juliet Rose" (Version 1.4.1717), macOS Big Sur).
Any help to fix the problem is highly appreciated, thanks!
---
title: "minimalTest"
output: pdf_document
---
``` {r, include = F}
solution <- TRUE
``` `
\newif\ifsol
\sol`r ifelse(solution, 'true', 'false')`
# Simple example of non-compiling code
\ifsol
Text to conditionally skip
\fi
The error produce is the following
! Use of ifMT@inlist@ doesn't match its definition.
MT@setupfont ...g MT@check@font ifMT@inlist@ else
MT@vinfo {Setting up font ...
l.77 code}
\label{simple-example-of-non-compiling-code}}