Zarathu Official Blog - https://blog.zarathu.com
- 개인 계정으로 zarathucorp/blog 를 Fork
- 로컬에 Clone
- Rstudio에서 blog/zarathucorp.Rproj을 열기
- blog/posts로 이동
- 아티클을 담을 디렉토리 생성, 이때 형식은
YYYY-MM-DD-TITLE
(다른 예시 참조) - 생성한 디렉토리로 이동 후
index.qmd
생성 - YAML 작성 예시 (render 에러가 날 경우 Indent, tab 확인)
---
title: "pkgdown을 활용한 R 패키지 문서화"
description: |
R 패키지를 다른 사람들도 잘 활용할 수 있게 설명해주는 웹사이트를 pkgdown을 사용하여 만들어보자
categories:
- R
- Rpackage
- pkgdown
- githubpage
- documentation
- website
aliases:
- pkgdown.html
author:
name: "Jinhwan Kim"
email: [email protected]
url: https://github.com/jhk0530
image: img/logo.png
date: 2023-03-15
format: html
lang: kr
execute:
freeze: true
draft: false
license: CC BY-NC
---
- 아티클을
index.qmd
에 이어서 작성 후 Knit - 이때 이미지는 디렉토리내의
/img
를 활용하길 권장 - 로컬에 Commit
- zarathucorp/blog에 Pull Request 생성
- 검토 후 Merge
- 끝
2023-02-01-streamlit 디렉토리 참조
-
생성한 디렉토리에 추가로 슬라이드 qmd 파일 작성
-
Knit
-
index.qmd
에 아래의 예시를 참조하여 iframe 추가
- src에
/posts
추가한 슬라이드 qmd의 html결과를 참조하게 함 - 슬라이드 qmd에서는 반드시 yaml에 draft: true 있어야 함.
- 슬라이드 html이 생기지 않는 경우 render 후
Ctrl + S
로 저장하기
<iframe class="slide-deck" src="/posts/2023-02-01-streamlit/streamlit_slide.html" width="750px" height="500px" style="border: solid 1px black">
</iframe>
---
format:
revealjs:
theme: default
incremental: true
auto-animate-easing: ease-in-out
auto-animate-unmatched: false
auto-animate-duration: 0.8
transition: slide
background-transition: fade
chalkboard:
theme: whiteboard
boardmarker-width: 5
buttons: false
standalone: true
execute:
freeze: true
draft: true
---