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

Fix windows zip problem in vignette #50

Closed
wants to merge 8 commits into from
Closed

Conversation

cansavvy
Copy link
Contributor

@cansavvy cansavvy commented Sep 15, 2021

It appears rprojroot doesn't always work consistently on windows operating systems. I think that is the problem behind #49.

Edit: nope that wasn't the problem. Turns out Windows was having trouble unzipping the file to begin with and that had to do with its assumption that the example data zip file was a text file instead of a zip file like it is. So this is fixed by using mode = "wb" upon downloading with download.file().

@cansavvy cansavvy changed the title See if using fs::path_home() works on windows Fix windows problem in vignette -- mode = "wb" Sep 15, 2021
@cansavvy
Copy link
Contributor Author

Ugh. Windows is still failing. I thought I had it on that last one.

@cansavvy cansavvy changed the title Fix windows problem in vignette -- mode = "wb" Fix windows zip problem in vignette Sep 15, 2021
@cansavvy
Copy link
Contributor Author

I've ran out of ideas on how to fix this right now. Will return to it later.

@cansavvy
Copy link
Contributor Author

Going to retry this one more time now that the zip file doesn't have that weird folder (jhudsl/OTTR_Template#200)

@cansavvy
Copy link
Contributor Author

Nope:

cannot open file './docs/coursera/resources/images/home/rstudio/DaSL_Course_Template_Bookdown/docs/coursera/01-intro_files/figure-html/1YmwKdIy9BeQ3EShgZhvtb3MgR8P6iDX4DfFD65W_gdQ_gcc4fbee202_0_141.png': No such file or directory

@cansavvy
Copy link
Contributor Author

But alternatively I may just get rid of that coursera folder because we don't really need it.

@cansavvy
Copy link
Contributor Author

Abandoning this strategy for another solution: #56 This PR is no longer relevant.

@cansavvy cansavvy closed this Sep 23, 2021
@cansavvy cansavvy deleted the cansavvy/windows-probs branch September 28, 2021 16:49
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

Successfully merging this pull request may close these issues.

1 participant