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

@alex23lemm alex23lemm commented Nov 21, 2017

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

@jjallaire jjallaire commented Nov 21, 2017

@yihui Could you take a look at this?

@yihui
Copy link
Member

@yihui yihui commented Nov 21, 2017

Should be fixed by #134.

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

@alex23lemm alex23lemm commented Nov 24, 2017

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

@poldrack
Copy link

@poldrack poldrack commented Nov 24, 2017

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 yihui commented Nov 24, 2017

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

@poldrack
Copy link

@poldrack poldrack commented Nov 24, 2017

awesome, works now - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.