Installing Packages with proxy issue

Hello,

In my rstudio-connect.gcfg file I have

[Packages]
HTTPProxy = http://my_proxy_name:8099/
HTTPSProxy = https://my_proxy_name:8099/

In my rprofile I have:

Sys.setenv(
          http_proxy  = "http://my_proxy_name:8099/",
          HTTP_PROXY  = "http://my_proxy_name:8099/",
          https_proxy = "https://my_proxy_name:8099/",
          HTTPS_PROXY = "https://my_proxy_name:8099/"
)

But I get this error when trying to install package -

[Connect] 2020/08/31 16:24:14.718508090 Additional data:
[Connect] RepositoryURL: 'my_custom_artifactory_repo'
[Connect] Package: 'custom_package_name'
[Connect] PackageVersion: '1.0.0'
[Connect] Packages.HTTPProxy: ''
[Connect] Packages.HTTPSProxy: ''
[Connect] Found in the following log entry:
[Connect]  Warning: unable to access index for repository my_custom_artifactory_repo:

This values are blank -

[Connect] Packages.HTTPProxy: ''
[Connect] Packages.HTTPSProxy: ''

I can install the package manually if I just open up R on the server rstudio-connect is on and install it. Rstudio-connect is using the same version of R that I use when I open up R manually on the server. I know this because -

[Server]
RVersionScanning = false
RVersion = /opt/R/3.6.2

What am I doing wrong?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.