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
bug in tutorials? #54
Comments
Thanks that’s a very valuable report. Can you post “sessionInfo()” after you see that bug on your computer please? The SO post is without solution unfortunately. |
As an aside, we should probably require R 3.5 in September - or whatever is the latest version. |
Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
Not bug in our code. This is an upstream issue. It has to do with incompatible markdown versions. Will have to deal with that |
i assigned @jsay to this issue - i will ping you once the upstream issue is resolved so you can try whether it works for you. |
I've updated (now R version 3.5.1 (2018-07-02)), and the message error change to: Error in shiny_prerendered_html(input_rmd, encoding, render_args) : |
Yes I’ve got the same. I’m investigating this.
…On Mon 27 Aug 2018 at 23:12, Jean-Sauveur Ay ***@***.***> wrote:
I've updated (now R version 3.5.1 (2018-07-02)), and the message error
change to:
Error in shiny_prerendered_html(input_rmd, encoding, render_args) :
Prerendered HTML file not found at ./chapter3.html
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA-Wdg2EdJYr_wZS711AZXFriKpYXw2Jks5uVGC2gaJpZM4Vxu1q>
.
|
It works like this: we need to build the html on our computer and put it in
/inst. the user calls run_tutorial which looks for that pre rendered html.
I think we have a botched /inst onngithub at the moment but I had a hard
time yesterday getting it to work.
On Tue 28 Aug 2018 at 08:19, Florian Oswald <florian.oswald@gmail.com>
wrote:
… Yes I’ve got the same. I’m investigating this.
On Mon 27 Aug 2018 at 23:12, Jean-Sauveur Ay ***@***.***>
wrote:
> I've updated (now R version 3.5.1 (2018-07-02)), and the message error
> change to:
>
> Error in shiny_prerendered_html(input_rmd, encoding, render_args) :
> Prerendered HTML file not found at ./chapter3.html
>
> —
> You are receiving this because you commented.
>
>
> Reply to this email directly, view it on GitHub
> <#54 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AA-Wdg2EdJYr_wZS711AZXFriKpYXw2Jks5uVGC2gaJpZM4Vxu1q>
> .
>
|
In fact, another solution would be to have the students call
rmarkdown::run(filename.rmd),
But that filename would be something like
system.file(“ScPoEconometrics”,”tutorials”,”chapter3”,”chapter3.rmd”)
A bit unwieldy! No?
On Tue 28 Aug 2018 at 08:23, Florian Oswald <florian.oswald@gmail.com>
wrote:
… It works like this: we need to build the html on our computer and put it
in /inst. the user calls run_tutorial which looks for that pre rendered
html. I think we have a botched /inst onngithub at the moment but I had a
hard time yesterday getting it to work.
On Tue 28 Aug 2018 at 08:19, Florian Oswald ***@***.***>
wrote:
> Yes I’ve got the same. I’m investigating this.
>
> On Mon 27 Aug 2018 at 23:12, Jean-Sauveur Ay ***@***.***>
> wrote:
>
>> I've updated (now R version 3.5.1 (2018-07-02)), and the message error
>> change to:
>>
>> Error in shiny_prerendered_html(input_rmd, encoding, render_args) :
>> Prerendered HTML file not found at ./chapter3.html
>>
>> —
>> You are receiving this because you commented.
>>
>>
>> Reply to this email directly, view it on GitHub
>> <#54 (comment)>,
>> or mute the thread
>> <https://github.com/notifications/unsubscribe-auth/AA-Wdg2EdJYr_wZS711AZXFriKpYXw2Jks5uVGC2gaJpZM4Vxu1q>
>> .
>>
>
|
Yes,
This needs additional dependencies... I would favor solutions that work on R out of the box (at least for students) |
Yes. The tutorials are still WIP. don’t despair, we’ll get there.
It will be good to test the tutorials in the coming days as I have not
found a way to test them via CI.
…On Tue 28 Aug 2018 at 19:49, Jean-Sauveur Ay ***@***.***> wrote:
Yes,
I do not know sufficiently the learnr package and its interaction with
rmarkdown.
rmarkdown::run(ScPoEconometrics/inst/tutorials/chapter3/chapter3.Rmd)
returns:
Erreur : pandoc version 1.12.3 or higher is required and was not found
(see the help page ?rmarkdown::pandoc_available).
This needs additional dependencies... I would favor solutions that work on
R out of the box (at least for students)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA-WdlvAcAwOBWYaEJil4UIq1lNq6zeTks5uVYKSgaJpZM4Vxu1q>
.
|
What’s your rstudio build? Pandoc ships as a component of rstudio. Maybe an
update is enough?
On Tue 28 Aug 2018 at 19:59, Florian Oswald <florian.oswald@gmail.com>
wrote:
… Yes. The tutorials are still WIP. don’t despair, we’ll get there.
It will be good to test the tutorials in the coming days as I have not
found a way to test them via CI.
On Tue 28 Aug 2018 at 19:49, Jean-Sauveur Ay ***@***.***>
wrote:
> Yes,
> I do not know sufficiently the learnr package and its interaction with
> rmarkdown.
>
> rmarkdown::run(ScPoEconometrics/inst/tutorials/chapter3/chapter3.Rmd)
> returns:
> Erreur : pandoc version 1.12.3 or higher is required and was not found
> (see the help page ?rmarkdown::pandoc_available).
>
> This needs additional dependencies... I would favor solutions that work
> on R out of the box (at least for students)
>
> —
> You are receiving this because you commented.
>
>
> Reply to this email directly, view it on GitHub
> <#54 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AA-WdlvAcAwOBWYaEJil4UIq1lNq6zeTks5uVYKSgaJpZM4Vxu1q>
> .
>
|
Ok I confirm that. If you call that function from rstudio you should be
fine (recent version). I’ll tighten up the rmarkdown version requirement in
the next update.
It will be recommended to use R mainly through Rstudio.
from ` ?rmarkdown::pandoc_available`
The system environment variable PATH as well as the version of pandoc shipped with RStudio (its location is set via the environment variable RSTUDIO_PANDOC by RStudio products like the RStudio IDE, RStudio Server, Shiny Server, and RStudio Connect, etc) are scanned for pandoc and the highest version available is used.
On Tue 28 Aug 2018 at 20:06, Florian Oswald <florian.oswald@gmail.com>
wrote:
… What’s your rstudio build? Pandoc ships as a component of rstudio. Maybe
an update is enough?
On Tue 28 Aug 2018 at 19:59, Florian Oswald ***@***.***>
wrote:
> Yes. The tutorials are still WIP. don’t despair, we’ll get there.
>
> It will be good to test the tutorials in the coming days as I have not
> found a way to test them via CI.
>
> On Tue 28 Aug 2018 at 19:49, Jean-Sauveur Ay ***@***.***>
> wrote:
>
>> Yes,
>> I do not know sufficiently the learnr package and its interaction with
>> rmarkdown.
>>
>> rmarkdown::run(ScPoEconometrics/inst/tutorials/chapter3/chapter3.Rmd)
>> returns:
>> Erreur : pandoc version 1.12.3 or higher is required and was not found
>> (see the help page ?rmarkdown::pandoc_available).
>>
>> This needs additional dependencies... I would favor solutions that work
>> on R out of the box (at least for students)
>>
>> —
>> You are receiving this because you commented.
>>
>>
>> Reply to this email directly, view it on GitHub
>> <#54 (comment)>,
>> or mute the thread
>> <https://github.com/notifications/unsubscribe-auth/AA-WdlvAcAwOBWYaEJil4UIq1lNq6zeTks5uVYKSgaJpZM4Vxu1q>
>> .
>>
>
|
I do not use Rstudio usually, I'll try it |
yes if you could, please give it a try. we'll recommend students to use it, but it's important to know that there are version requirements outside of Rstudio that we need to be aware of. I'll try to fix this today, do you have time for a couple of tests later on? thanks |
ok,
runs well with Rstudio, I close the issue |
ok, that is good to know, thanks! I would still like to be able to use the function |
pinging @jsay to try this out again. Upon reinstallation you will find function |
On R version 3.4.4 (2018-03-15)
I've loaded the libraries ScPoEconometrics 0.0.1 and learner 0.9.2.1.
When running:
I obtain:
Related to the following issue:
https://stackoverflow.com/questions/51213726/when-running-a-tutorial-with-learnr-r-gives-an-error
The text was updated successfully, but these errors were encountered: