how to convert rtf file to pdf in r?

How can I convert an rtf file to a pdf file in R? I cannot find any answers online.