# Github package installation error

**URL:** <https://datashield.discourse.group/t/github-package-installation-error/1070>\
**Category:** Beginner Support\
**Created:** [22 August 2024 13:57 UTC](https://datashield.discourse.group/t/github-package-installation-error/1070 "2024-08-22T13:57:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SA2296](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@SA2296](https://datashield.discourse.group/u/SA2296)\
**Post date:** [22 August 2024 13:57 UTC](https://datashield.discourse.group/t/github-package-installation-error/1070/1 "2024-08-22T13:57:18Z")

</div>

Hi,

I am trying to install several DataSHIELD packages from github e.g. dsOmics and dsML using the following command from opalr package:

```auto
o <- opal.login(user = "administrator", password = "pwd", url = "https://localhost:443", opts=list(ssl_verifyhost=0, ssl_verifypeer=0))
dsadmin.install_github_package(o, 'dsOmics', username='isglobal-brge')

```

However, I get the following error:

```auto
Error: [Server error: (504) Gateway Timeout]

```

I tried to install other packages available on CRAN and it worked. Do you have any suggestion on how to fix this error? Thank you.

Best, Simone

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/yannick/32/19_2.png) [@yannick](https://datashield.discourse.group/u/yannick)\
**Post date:** [22 August 2024 15:29 UTC](https://datashield.discourse.group/t/github-package-installation-error/1070/2 "2024-08-22T15:29:41Z")

</div>

Hi,

The default opal https port on localhost is 8443.

If your system is configured for 443 (coral distribution?), then it may be because installing dsOmics and dependencies takes ~2h…

Note that it also depends on the version of opal: since opal 4.6, installing an R package is a background task, then the request should return a response almost immediately. What version are you using?

And are you a dsOmics developer? otherwise it is recommended to use a prepared docker image of the R server: that will save installation efforts, and you’ll get reproducibility.

Regards  
Yannick

---

<div class="post-metadata">

**Author:** ![SA2296](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@SA2296](https://datashield.discourse.group/u/SA2296)\
**Post date:** [28 August 2024 12:20 UTC](https://datashield.discourse.group/t/github-package-installation-error/1070/3 "2024-08-28T12:20:56Z")

</div>

Thank you. I am using Opal version 4.7.1

I was able to install the package using the following docker image: [docker-rock-omics/Dockerfile at master · obiba/docker-rock-omics · GitHub](https://github.com/obiba/docker-rock-omics/blob/master/Dockerfile) However, if I want to install new packages I would have to modify the Opal docker image and the rock image every time and launch the container again. Is there a working way to install packages without having to modify the docker image? Thank you.

Regards, Simone

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/yannick/32/19_2.png) [@yannick](https://datashield.discourse.group/u/yannick)\
**Post date:** [28 August 2024 13:10 UTC](https://datashield.discourse.group/t/github-package-installation-error/1070/4 "2024-08-28T13:10:08Z")

</div>

If it is for development purpose, you can install R packages trough opal

- using the web interface: [R — Opal documentation](https://opaldoc.obiba.org/en/latest/web-user-guide/administration/r.html#packages)
- using R (there are sevaral install package flavors): [Function reference • opalr](https://www.obiba.org/opalr/reference/index.html)

If it is for production, it is strongly recommended to make docker images that fits your needs (to ensure reproducibility).

Note that:

- you can have several R servers attached to Opal, using different profile names, [How to Set up DataSHIELD Server Profiles — Opal documentation](https://opaldoc.obiba.org/en/latest/cookbook/r-datashield/datashield-profiles.html)
- you do not need to modify the opal image

Regards  
Yannick
