rmd/9999_notes.md

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

These are OLD Notes, for working with android/USB/Google drive (from

Chromebook). Doubt of any use.

\today

Rule of Thumb

ONEPLUS

```{r oneplus, eval=FALSE }

ONEPlus

do NOT play with Android Developer's options

DO THIS:

jmtpfs ~/my_oneplus/ the_dir <- "~/my_oneplus/'Internal shared storage'/"

(do not use ~/my_oneplus/)

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)

USB Stick (32 GB)

```{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



jimrothstein/pkg_mp3 documentation built on July 5, 2021, 7:46 a.m.