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

download.file in chunk #111

Open
larssk opened this issue Aug 18, 2017 · 0 comments
Open

download.file in chunk #111

larssk opened this issue Aug 18, 2017 · 0 comments

Comments

@larssk
Copy link

larssk commented Aug 18, 2017

I have a minor problem with download.file() using method = 'auto' when running it from within learnr code chunks. The same code works in a normal Rmd documents, as well as in terminal and r-studio console. Example code

download.file("https://files.rcsb.org/download/1hel.pdb", "test.pdb", method = "auto")

fails with: "cannot open URL 'https://files.rcsb.org/download/1hel.pdb'" in learnr only.

method = 'curl' works with learnr but the problem is that the download function is embedded in a package so it's not trivial to change the method argument. Any thoughts on how I can get this to work in learnr?

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

1 participant