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

Reduce amount of guessing in guess_blogdown() #18

Open
maxwelco opened this issue Oct 26, 2020 · 2 comments
Open

Reduce amount of guessing in guess_blogdown() #18

maxwelco opened this issue Oct 26, 2020 · 2 comments
Assignees
Labels
priority: high High priority status: planned Planning to implement type: bug It's a bug type: maintenance Eat your vegetables

Comments

@maxwelco
Copy link

Hi there,

I am trying to share my xaringan slides but I am getting this following error:

Quitting from lines 35-51 (pastagem.Rmd)
Error in file(con, "r") : cannot open the connection
Calls: ... guess_blogdown -> grepl -> collapse -> paste -> readLines -> file
Execution halted

This is my repo: https://github.com/Unoeste-PP/palestra-pastagens

My xaringan presentation: https://github.com/Unoeste-PP/palestra-pastagens/blob/main/pastagem.Rmd

Thanks

@gadenbuie
Copy link
Owner

You can likely get around this by adding include_meta() as the last step in the metathis pipeline.

The problem arises from a function that tries to guess if the current file is destined to be a blogdown page, in which case metathis doesn't work well. I'll take another look at the function that does the guessing, which should probably check for the blogdown directories before trying to look in the config.yaml. I could also check the output metadata of the current document, to discover, for example, that we're inside a xaringan presentation, no matter whether the presentation is part of a blogdown page.

@gadenbuie gadenbuie self-assigned this Oct 26, 2020
@gadenbuie gadenbuie added priority: high High priority status: planned Planning to implement type: bug It's a bug type: maintenance Eat your vegetables labels Oct 26, 2020
@gadenbuie gadenbuie changed the title Error in file(con, "r") Reduce amount of guessing in guess_blogdown() Oct 26, 2020
@maxwelco
Copy link
Author

Thank you for your help and explanation, it works! I am trying to get it online now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high High priority status: planned Planning to implement type: bug It's a bug type: maintenance Eat your vegetables
Projects
None yet
Development

No branches or pull requests

2 participants