Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RStudio version 1.1.423, Mac
File -> New File -> R Markdown...
Insert -> Rcpp
```{rcpp} ```
Running something like the chunk below fails with /bin/sh: rcpp: command not found.
/bin/sh: rcpp: command not found
```{rcpp} #include <Rcpp.h> using namespace Rcpp; // [[Rcpp::export]] NumericVector timesTwo(NumericVector x) { return x * 2; } ```
Changing it to Rcpp not rcpp works fine. I assume this has to do with the fact that Rcpp is used as the knit engine, not rcpp.
Rcpp
rcpp
> names(knitr::knit_engines$get()) [1] "awk" "bash" "coffee" "gawk" "groovy" "haskell" "lein" "mysql" "node" "octave" "perl" "psql" [13] "Rscript" "ruby" "sas" "scala" "sed" "sh" "stata" "zsh" "highlight" "Rcpp" "tikz" "dot" [25] "c" "fortran" "fortran95" "asy" "cat" "asis" "stan" "block" "block2" "js" "css" "sql" [37] "go" "python" "julia"
The text was updated successfully, but these errors were encountered:
Potentially relevant line
rstudio/src/gwt/src/org/rstudio/studio/client/workbench/views/source/editors/text/TextEditingTarget.java
Line 4426 in 0506148
Sorry, something went wrong.
45e1000
No branches or pull requests
RStudio version 1.1.423, Mac
File -> New File -> R Markdown...Insert -> RcppRunning something like the chunk below fails with
/bin/sh: rcpp: command not found.Changing it to
Rcppnotrcppworks fine. I assume this has to do with the fact thatRcppis used as the knit engine, notrcpp.The text was updated successfully, but these errors were encountered: