jhudsl / ottrpal

Tools for converting OTTR courses into Leanpub or Coursera courses :otter:

Home Page:https://jhudatascience.org/ottrpal/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`gs_png_download()`: Double backslash

howardbaek opened this issue · comments

When gs_png_download() is run inside include_slide() with the default output_dir = knitr::opts_chunk$get("fig.path"), I see that outfile will have double blackslashes: figure//XX.png.

See this line that constructs file path: https://github.com/jhudsl/ottrpal/blob/main/R/gs_png.R#L85

Was this by design to accomodate Windows file paths? Or can we get rid of the extra backslash?

@muschellij2 @cansavvy

Okay, thanks @muschellij2