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

Enable loading of tidyverse #47

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Enable loading of tidyverse #47

merged 1 commit into from
Jun 5, 2024

Conversation

StevenMaude
Copy link
Contributor

Fixes #31.

This was discussed and we initially decided that we should fix these dependency issues on a case-by-case basis.

This was tested locally by building the Docker image and running library('tidyverse') inside.

With this commit:

> library('tidyverse')
── Attaching packages ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── tidyverse 1.3.0 ──
✔ ggplot2 3.4.2     ✔ purrr   0.3.4
✔ tibble  3.0.3     ✔ dplyr   1.0.2
✔ tidyr   1.1.2     ✔ stringr 1.4.0
✔ readr   1.3.1     ✔ forcats 0.5.0
── Conflicts ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
…

Without this commit, we get the reported behaviour in #31:

> library('tidyverse')
Error: package or namespace load failed for ‘tidyverse’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/usr/local/lib/R/site-library/xml2/libs/xml2.so':
  libxml2.so.2: cannot open shared object file: No such file or directory

Fixes #31.

This was discussed and we initially decided that we should fix these
dependency issues on a case-by-case basis.

This was tested locally by building the Docker image and running
`library('tidyverse')` inside.

With this commit:

```
> library('tidyverse')
── Attaching packages ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── tidyverse 1.3.0 ──
✔ ggplot2 3.4.2     ✔ purrr   0.3.4
✔ tibble  3.0.3     ✔ dplyr   1.0.2
✔ tidyr   1.1.2     ✔ stringr 1.4.0
✔ readr   1.3.1     ✔ forcats 0.5.0
── Conflicts ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
…
```

Without this commit, we get the reported behaviour in #31:

```
> library('tidyverse')
Error: package or namespace load failed for ‘tidyverse’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/usr/local/lib/R/site-library/xml2/libs/xml2.so':
  libxml2.so.2: cannot open shared object file: No such file or directory
```
@StevenMaude
Copy link
Contributor Author

(I don't know R well enough — that is, at all — to know if the Conflicts listed are anything we need worry about.)

@StevenMaude StevenMaude merged commit ebd5f34 into main Jun 5, 2024
3 checks passed
@StevenMaude StevenMaude deleted the steve/fix-tidyverse branch June 5, 2024 17:20
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.

Error when attempting to load the tidyverse package
2 participants