Rcpp

Introduction to Rcpp and RcppArmadillo

You can actually code in C++ in RStudio

Kang Gyeonghun
References This post is based on several sources including; https://dirk.eddelbuettel.com/papers/useR2019_rcpp_tutorial.pdf (Intro to Rcpp and Rcpparmadillo) https://privefl.github.io/R-presentation/Rcpp.html (Intro to Rcpp) https://teuder.github.io/rcpp4everyone_en/ (for Rcpp object class, methods and functions) http://arma.sourceforge.net/docs.html (for RcppArmadillo class, methods and functions) http://dirk.eddelbuettel.com/code/rcpp/Rcpp-sugar.pdf (for Rcpp sugar functions, including prob dists) https://teuder.github.io/rcpp4everyone_en/310_Rmath.html (for Rmath in R:: namespace, mostly prob dists) https://www.w3schools.com/cpp/cpp_math.asp (for cmath in std:: namespace)

Rtools를 윈도우 환경변수 PATH에 추가하는 방법

How to add Rtools to windows PATH environment variable?

Kang Gyeonghun
윈도우에서 리눅스 기반으로 만들어진 오픈소스 프로그램을 사용하면 필사적인 구글링을 해야하는 문제가 정말 주기적으로 발생하는 것 같습니다. Rmarkdown으로 Rcpp 함수를 쓸 때 knit가 안 되어, 해결하는데 꽤 고생했습니다. 혹시 이런 문제를 겪으실 분을 위해 간단한 가이드를 작성했습니다. 도움이 됐으면 좋겠습니다! Using opensource software such as R in windows is to face a constant barrage of quirky weird errors and to desperately search for help. Unexceptionally, Rcpp package kindly gave me another of such headache.