lmu-osc / introduction-to-renv

Walkthrough tutorial on setting up and using renv
https://lmu-osc.github.io/introduction-to-renv/
Creative Commons Attribution Share Alike 4.0 International
1 stars 0 forks source link

feedback on current state of tutorial - Malika's version #17

Closed MalikaIhle closed 2 months ago

MalikaIhle commented 2 months ago

https://lmu-osc.github.io/introduction-to-renv/comp_reproducible.html

https://lmu-osc.github.io/introduction-to-renv/technical_definitions.html

https://lmu-osc.github.io/introduction-to-renv/dependencies_in_r.html

https://lmu-osc.github.io/introduction-to-renv/renv_getting_started.html

https://lmu-osc.github.io/introduction-to-renv/caching.html

https://lmu-osc.github.io/introduction-to-renv/restoring_a_project.html

will submit a new issue when going through the exercices.

NeuroShepherd commented 2 months ago

Thanks @MalikaIhle! Will be incorporating feedback today and tomorrow.

FYI for typos and other small changes, creating a new branch and then opening a pull request with suggested changes is probably easier than typing out everything. Here's an example from Florian (who also noted some of the same typo issues as you): https://github.com/lmu-osc/introduction-to-renv/pull/19.

NeuroShepherd commented 2 months ago

(currently at version 1.0.7). -> make this future proof by adding a date or cutting?

Version info is updated automatically.

Self: make sure the GH Action for the website runs every week or so. ^Now scheduled to rebuild the site weekly.

NeuroShepherd commented 2 months ago

didn't understand this: The {renv} package also provides a function to access the exact path to the cache used in your current project. This cache location will be slightly more specific than the paths listed above because it is a reference to one specific cache, but not all of the caches on your system. You can access the path to the cache with the following code: renv::paths$cache() do you mean 'you can access the cach of a specific project by typing ...? not sure what aarch64-apple-darwin20 is not sure how I would know these paths / which path to look into

No. There are (generally) not project-specific caches. The cache(s) specifically works by being shared across projects. I wouldn't expect someone to know these paths hence the explicit mention of renv::paths$cache().

My overall objective with the caching page is to clarify that {renv} creates its own library, and show users where this library/cache is located so they can understand everything a bit more tangibly.

NeuroShepherd commented 2 months ago

the whole justification for this page lies in this sentence as far as I understand: "This is an important detail to note for the Restoring Projects section of this tutorial, as you may need to rebuild the cache if you upgrade your R version." - could this be an advanced page, linked in the restore page - 'in the case of upgrading your R version read about that'? and then specify exactly what needs doing? but remove this page from the main tutorial section?

In general, I think so yes. I've been going back-and-forth on whether to include caching in the main tutorial or in the advanced section anyway. I'll review the page again to see if there's anything that I think is really essential for someone learning {renv} the first time, though.

NeuroShepherd commented 2 months ago

'Open the *.Rproj file' -> is this why you recommend to push that file? what if it is not on github? but you create it locally when cloning? would that work?

Yes, that is why I recommend it. {renv} is realllyyyy intended to be used in conjunction with an .Rproj. If it's not on GitHub, then users should create one locally (and likely push it to GitHub for all project users.)

NeuroShepherd commented 2 months ago

'Place the lockfile in the directory you are working on your project from. This should be a directory with a *.Rproj file.' isn't the lock file supposed to be there already? -> perhaps change to 'make sure the lockfile is in your project directory that contains the Rproj file'

I can try to further clarify this kind of scenario, but essentially the "From a lockfile" section is making the assumption that someone has only provided a lockfile to you via e.g. email or messages or something similar.