title: "r knitr::current_input()"
date: "r paste('last updated',
format(lubridate::now(), ' %d %B %Y'))"
output:
html_document:
code_folding: show
toc: true
toc_depth: 2
toc_float: true
mathjax: default
pdf_document:
latex_engine: xelatex
toc: true
toc_depth: 2
fontsize: 10pt
geometry: margin=0.5in,top=0.25in
TAGS:
as of \today: * To mix latex and .md, must go with pdf, either pandoc or knit * Add r, knitr code to YAML? then must render as .RMD file * I do not know how to embed latex, produce html or md (github flavor).
=== PDF [ignores html, css; also ignores YAML header (pandoc & ::render()] ===
NOTE: .tex uses a .sty which I do not have. USE knitr:: (with TinyTex to locate and install that .sty file)
TODO: pandoc may think 2nd % is both relative directory and file name
!pandoc % -f markdown -o %.pdf
!pandoc % -f markdown -t latex -H ../chapter_break.tex -V linkcolor:blue -V fontsize=11pt -V geometry:margin=0.3in -o ~/Downloads/print_and_delete/out.pdf !pandoc % -f markdown -t latex -H ../chapter_break.tex -V linkcolor:blue -V fontsize=11pt -V geometry:margin=0.3in -o out.pdf !pandoc % -f markdown --pdf-engine xelatex -H chapter_break.tex -V linkcolor:blue -V fontsize=11pt -V geometry:margin=0.3in -o ~/Downloads/print_and_delete/out.pdf
==== HTML [ignores latex] ====
==== GITHUB: *.md display nicely? [ignores latex] ====
-H header -V or --variable --pdf-engine=xelatex
PANDOC EXAMPLES: https://learnbyexample.github.io/tutorial/ebook-generation/customizing-pandoc/
MARKDOWN GUIDE: https://www.markdownguide.org/basic-syntax/
\newpage
Chromebook). Doubt of any use.
\today
```{r oneplus, eval=FALSE }
jmtpfs ~/my_oneplus/ the_dir <- "~/my_oneplus/'Internal shared storage'/"
the_dir <- "~/my_oneplus/Internal shared storage/Music/" list.files(path = the_dir)
### Google Drive
```{r google}
# local
the_dir <- "~/Downloads/mp3/from_youtube/DO_NEXT/"
the_dir
# Google - Works!
# ========
# ls /var/host/media/fuse/drivefs-34a039d82ac00e8c8d62cd30042f3741/root/ | less
the_dir <- "/var/host/media/fuse/drivefs-34a039d82ac00e8c8d62cd30042f3741/root/"
the_dir
list.files(path = the_dir)
```{r usb} the_dir <- "/media/removable/mp3_music/clean_mp3/" the_dir
list.files(path = the_dir) ``` R can access files on USB stick!
```{r usb_device} the_dir <- "/media/removable/mp3_music/" the_files <- list.files(the_dir) the_files
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.