r 설치 후 utf-8 오류(https://may0301.tistory.com/13)
> install.packages("devtools")
> devtools::install_github("rstudio/bookdown")
rstudio에서 북다운 프로젝트 생성
https://unfinishedgod.netlify.app/2020/08/04/bookdowngithub-page에-publish하기/ 통해 환경 설정
rmd 파일 실행(실패)
Error in yaml::yaml.load(..., eval.expr = TRUE) :
Scanner error: while scanning a simple key at line 8, column 1 could not find expected ':' at line 9, column 1
Calls: <Anonymous> ... <Anonymous> -> resolve -> <Anonymous> -> yaml_load -> <Anonymous>
Execution halted
Exited with status 1.
이 오류는 yml 파일(bookdown.yml)에 : 다음에 공백이 있어야 하는데 공백없이 문자가 와서 발생한 오류임(https://github.com/rstudio/rmarkdown/issues/1425)
! sh: xelatex: command not found
Error: LaTeX failed to compile _main.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See _main.log for more info.
In addition: Warning message:
In system2(..., stdout = if (use_file_stdout()) f1 else FALSE, stderr = f2) :
error in running command
Execution halted
Error: bookdown::render_book() failed to render the output format 'bookdown::pdf_book'.
Execution halted
Exited with status 1.
tinytex::install_tinytex() 설치 (https://stackoverflow.com/questions/58427254/failed-to-compile-test-tex-see-https-yihui-name-tinytex-r-debugging-for-debu)
install.packages("bslib")
install.packages("xml2")
install.packages("downlit")
--------------------------------
1. rstudio에서 새 프로젝트로 bookdown
2. github desktop으로 깃생성 업로드
3. github 환경설정에서 gitpage /docs설정 후 3분 기다리기
-- 참고
https://statkclee.github.io/comp_document/bookdown-intro.html
https://unfinishedgod.netlify.app/2020/08/04/bookdowngithub-page에-publish하기/
댓글 없음:
댓글 쓰기