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

File path requiring manual adjustment in R Binder demo #30

Open
dmgt opened this issue Mar 22, 2019 · 1 comment
Open

File path requiring manual adjustment in R Binder demo #30

dmgt opened this issue Mar 22, 2019 · 1 comment

Comments

@dmgt
Copy link

dmgt commented Mar 22, 2019

First, thank you for creating this tutorial, implementing it in multiple programming languages, and sharing it as a Binder - very helpful and easy to share with colleagues.

Here's what appears to be a file path issue - I'm happy to submit a PR to adjust this in the .Rmd version if helpful.

Specifically, running the code in line 259 of raincloud_tutorial_r.Rmd verbatim rep_data <- read_csv("repeated_measures_data.csv" ... was resulting in this error on Binder :

Error: 'repeated_measures_data.csv' does not exist in current working directory ('/home/jovyan')

So far I've tested two ways to resolve this, either explicitly including the path, eg

rep_data <- read_csv("tutorial_R/repeated_measures_data.csv" ...

or by using the here package to navigate to the directory relative to the top-level repo. Using here is good practice for reproducibility in R in general, but requires adding a package that is not installed yet, so I think the above is a quicker fix.

rep_data <- read_csv(here("tutorial_R", "repeated_measures_data.csv") ...
@KirstieJane
Copy link
Member

Hi @dmgt! Thank you so much for catching this!

My personal preference would be for the here solution that you suggest! You’re exactly right that it is better practice!

To add a package, you can edit the install.R file and add whatever is needed.

A PR would be really welcome! Let me know if I can help 😺

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

2 participants