'R4Tistory' 팩키지는 티스토리 블로그를 하는 R유저들을 위한 팩키지 입니다. 현재 팩키지는 개인 사용 목적으로 만들었으며, 추후 티스토리 API를 통한 글올리기 기능을 갖추는 것을 목적으로 하고 있습니다.
'knitr4blog' 함수는 티스토리에서 R코드 하이라이팅을 위한 세팅이 끝난 후(), 설정된 세팅에 맞게 knitting을 해주는 기능입니다.
블로그에 올릴 Rmd 파일을 준비합니다. 단, 파일의 이름에는 공백이 없어야 합니다. 공백대신 밑줄('_')을 사용해 주세요.
Rmd 파일의 헤더는 다음과 같이 설정해줍니다. 자세한 사항은 포스팅을 참고하시기 바랍니다.
title: "제목" output: html_document: self_contained: TRUE keep_md: FALSE theme: NULL highlight: NULL
library(R4Tistory) knitr4blog("yourfile.Rmd")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.