Skip to content

Commit e061cd9

Browse files
Merge pull request #321 from coding-for-reproducible-research/amy_renv
Marge branch 'amy_renv' into 'main'
2 parents 524f950 + 22d0512 commit e061cd9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

short_courses/r_environments.ipynb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@
449449
"\n",
450450
"**Solutions:**\n",
451451
"\n",
452-
"* If exact reproducibility isn't critical, update to a more recent R version and/or newer package versions.\n",
452+
"* If exact reproducibility is not required, consider updating to a more recent R version and/or newer package versions.\n",
453453
"* For legacy work, search for archived source tarballs or consult the CRAN archive, but success isn't guaranteed.\n",
454454
"\n",
455455
"#### Backdating\n",
@@ -473,7 +473,7 @@
473473
" dplyr (>= 1.0.0)\n",
474474
"```\n",
475475
"\n",
476-
"To install a particular version using `renv` (which is then captured in `renv.lock` by calling `renv::snapshot()`):\n",
476+
"To install a particular version using `renv` (which will be recorded in `renv.lock` after you call `renv::snapshot()`):\n",
477477
"\n",
478478
"```\n",
479479
"renv::install(\"[email protected]\")\n",
@@ -486,11 +486,10 @@
486486
"**Symptoms:**\n",
487487
"\n",
488488
"* Package installation fails with errors about missing libraries (e.g., \"cannot find -lssl\", \"libcurl not found\", missing `.so` files).\n",
489-
"* Consult the CRAN page for each package (OR SPECIFIED ONE IN ERROR?); most list system requirements. As an example, the openssl and curl packages commonly require system libraries. See this GitHub issue for a real-world case and solution.\n",
490489
"\n",
491490
"**Solutions:**\n",
492491
"\n",
493-
"* Check the CRAN page for each package for system requirements. The `openssl` and `curl` packages are a common source of these issues.\n",
492+
"* Check the CRAN page for each package for any system requirements (listed beside `SystemRequirements`). The [`openssl`](https://cran.r-project.org/web/packages/openssl/index.html) and [`curl`](https://cran.r-project.org/web/packages/curl/index.html) packages are a common source of these issues.\n",
494493
"* Install the required system dependencies and document them in your `README` for others. For example:\n",
495494
" * Ubuntu/Debian: `sudo apt-get install libssl-dev libcurl4-openssl-dev`.\n",
496495
" * Fedora/RHEL: `sudo dnf install openssl-devel libcurl-devel`.\n",
@@ -499,7 +498,7 @@
499498
"\n",
500499
"#### Legacy user libraries\n",
501500
"\n",
502-
"On systems where R has been installed for a long time, the user library (the default location for installed packages) may contain outdated or conflicting packages. This can interfere with `renv`, sometimes causing it to fail silently or behave unpredictably.\n",
501+
"If R has been installed for a long time, your user library (the default location for installed packages) may contain outdated or conflicting packages. This can interfere with `renv`, sometimes causing silent failures or unpredictable behaviour.\n",
503502
"\n",
504503
"**Symptoms:**\n",
505504
"\n",

0 commit comments

Comments
 (0)