Can't use Rcpp engine in R Markdown

后端 未结 4 1650
南方客
南方客 2021-01-12 13:23

I tried to Knit HTML the following Rmd file:

---
title: \"Untitled\"
author: \"Florian Privé\"
date: \"12 septembre 2016\"
output: html_document         


        
4条回答
  •  伪装坚强ぢ
    2021-01-12 13:44

    I also just experienced this issue. I see that it's been a couple years since this was last addressed, so I wanted to update with the solution that I've found in 2020.

    I received that exact error that was mentioned at the top, and had into do a fresh install of Rtools. I originally had RBuildTools, which works for other packages I've built, but still had the issue when compiling the cpp code for this project. I installed Rtools40 and kept all of the defaults. Then changed the system path variable on my windows 10 machine to say C:\rtools40\usr\bin. After restarting the machine, knitr rendered the document without any further errors.

    Rtools40 installation instructions can be found at this link

    I hope that this helps!

提交回复
热议问题