Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorials cannot be launched under Windows because of rmarkdown #133

Closed
alex23lemm opened this issue Nov 21, 2017 · 6 comments
Closed

Tutorials cannot be launched under Windows because of rmarkdown #133

alex23lemm opened this issue Nov 21, 2017 · 6 comments

Comments

@alex23lemm
Copy link

At least for me the latest two rmarkdown versions 1.7 and 1.8 cause the following error under Windows when launching a learnr tutorial:

> learnr::run_tutorial("hello", package = "learnr")

Listening on http://127.0.0.1:5661
Warning: Error in normalizePath: path[1]="": The filename, directory name, or volume label syntax is incorrect
Stack trace (innermost first):
    8: <Anonymous>
    7: do.call
    6: rmarkdown::run
    5: force
    4: withr::with_envvar
    3: force
    2: withr::with_dir
    1: learnr::run_tutorial
Error : path[1]="": The filename, directory name, or volume label syntax is incorrect

Downgrading to version 1.6 using devtools::install_version("rmarkdown", version = "1.6") solves the issue:

> packageVersion("rmarkdown")
[1] ‘1.6’
> learnr::run_tutorial("hello", package = "learnr")

Listening on http://127.0.0.1:5661
@jjallaire
Copy link
Member

@yihui Could you take a look at this?

@yihui
Copy link
Member

yihui commented Nov 21, 2017

Should be fixed by #134.

@yihui yihui mentioned this issue Nov 21, 2017
3 tasks
jjallaire added a commit that referenced this issue Nov 23, 2017
Fix #133: use the highlight.js dependency from rmarkdown
@alex23lemm
Copy link
Author

Thanks for the fix! I just tested the latest learnr dev version 0.9.2 and everything works as expected again.

@poldrack
Copy link

This has fixed the problem with learnr::run_tutorial("hello", package = "learnr") but I am still getting the same path error with other learnr tutorials - e.g. learnr::run_tutorial("adventr_01",package='adventr') from https://github.com/profandyfield/adventr

@yihui
Copy link
Member

yihui commented Nov 24, 2017

@poldrack You need to delete the .html file and recompile the .Rmd document.

@poldrack
Copy link

awesome, works now - thanks!

sjgknight pushed a commit to sjgknight/learnr that referenced this issue Aug 10, 2021
Import instead of copying functions from rmarkdown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants