-
Notifications
You must be signed in to change notification settings - Fork 55
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
Package Manager - unable to find R #523
Comments
I see this is in the config hard coded, does this need to be updated along with the actual version installed into https://github.com/rstudio/rstudio-docker-products/blob/dev/package-manager/rstudio-pm.gcfg#L14 |
The actual version installed into /opt/R is 4.2.0. So I think we should:
|
Heads up @tylfin and @rodrigobrim if you have any thoughts on this |
Hi, @SamEdwardes. Can you try setting the R version on your Helm values.yaml?
|
Yes, I can confirm it works if you override the default with: config:
Server:
RVersion: /opt/R/4.2.0 But the default config in the Dockerfile points to an old version of R: $ docker run -it --rm rstudio/rstudio-package-manager:jammy-2022.11.4 /bin/sh
$ cat /etc/rstudio-pm/rstudio-pm.gcfg
; RStudio Package Manager configuration file
[Server]
; Address is a public URL for this RStudio Package Manager server. Must be configured
; to enable features like including links to your content in emails. If
; Package Manager is deployed behind an HTTP proxy, this should be the URL for Package Manager
; in terms of that proxy.
;
; Address = https://rstudio-pm.company.com
Address =
;
; Git sources require a configured R installation. R is often installed at `/usr/lib/R`
; or `/usr/lib64/R`.
RVersion = /opt/R/3.6.2/
;
; Customize the data directory if necessary. This is where all packages and metadata are
; stored by default. Refer to Admin Guide for details.
;DataDir = /mnt/rspm/data
;
; Use a consistent location for the Launcher directory. The default location
; is based on the hostname, and the hostname may be different in each container.
; When customizing the data directory, this should be set to {DataDir}/launcher_internal
LauncherDir = /var/lib/rstudio-pm/launcher_internal
[HTTP]
; RStudio Package Manager will listen on this network address for HTTP connections.
Listen = :4242
[HTTPS]
; Path to a TLS certificate file. If the certificate is signed by a certificate authority, the
; certificate file should be the concatenation of the server's certificate followed by the CA's
; certificate. Must be paired with `HTTPS.Key`.
;Certificate = ""
;
; Path to a private key file corresponding to the certificate specified with `HTTPS.Certificate`.
; Required when `HTTPS.Certificate` is specified.
;Key = ""
[CRAN]
; Customize the default schedule for CRAN sync.
;SyncSchedule = "0 0 * * *"
[Bioconductor]
; Customize the default schedule for Bioconductor syncs.
;SyncSchedule = "0 2 * * *"
[PyPI]
; Customize the default schedule for PyPI syncs.
;SyncSchedule = "0 1 * * *"
; Configure Git if you are intending to build and share packages stored in Git repositories.
[Git]
; The amount of time to wait between polling git repos to look for package changes.
;PollInterval = 5m
;
; The maximum number of times to attempt building a git package when the build fails.
;BuildRetries = 3
AllowUnsandboxedGitBuilds = true |
Docker image fixes have been implemented. Just need helm chart released in rstudio/helm#402 |
Any updates on including this in the Helm chart? thank you! |
@tylfin @shepherdjerred |
That would make sense, Joe. We can remove the The Docker image has R installed, so it would be successfully detected. We already take the auto-detection approach for the vanilla Docker image. |
I made a PR to the helm chart that will by default, have PPM use the R and Python auto-detection (rstudio/helm#474). However, we should also make changes to this repo. The two PPM config files:
Should be updated to use these settings:
|
Background
When using the Helm charts I was having trouble with Package Manager. After doing some research:
docker run -it --rm rstudio/rstudio-package-manager:jammy-2022.11.4 /bin/sh ls -la /opt/R # drwxr-xr-x 5 root root 4096 Apr 3 00:37 4.2.0
Reprex
docker run -it \ -p 4242:4242 \ -e RSPM_LICENSE=$RSPM_LICENSE \ rstudio/rstudio-package-manager:jammy-2022.11.4
The text was updated successfully, but these errors were encountered: