Feature #1116

Feature #1022: RCP: X.X, proxy settings in TXM and its components

TBX: X.X, R proxy configuration during TXM install

Added by Matthieu Decorde almost 9 years ago. Updated over 7 years ago.

Status:Feedback Start date:06/17/2014
Priority:Normal Due date:
Assignee:- % Done:


Category:Network Spent time: -
Target version:TXM 0.7.8


During the Linux an d Mac installations R cannot access internet to install the R packages

Solution 0

Configure R proxy in the .RProfile or .Renviron files


Embed R in all setups and provide the exact libraries for this version of R -> solve R packages installation but not
  • "Check R packages" command
  • R packages installation with the "install.packages" R function

Solution 2

  • Windows: run R with "--internet2" argument
  • Debian/Ubuntu: R automatically uses the "http_proxy" which is normally generated by the network manager. It means there is nothing more to do than running R et install the packages as with direct connection. But we may still test if "http_proxy" exists and do "something" if the variable doesn't exist because the tests have only been made on Ubuntu.
  • Mac OS X Mavericks: Network manager does not create "http_proxy" environment variable so we need to create it once. The proxies settings can be retrieved using "networksetup -getwebproxy <Network service>" then we can create the variable before running R with "export" or in R with Sys.setenv().

[SJ] It appears there is no easy cross-platform solution therefore the solution 1 seems to be the better one.

Solution 3

  • see R options download.file.method = "wget" or "lynx" or install.packages(method = "wget"). wget seems to use the OS network configuration rather than the R network configuration.
    The problem is under Mac OS X and Windows "wget" is not installed by default.
    The method depends on the OS :
  • Linux: wget
  • Mac OS X : curl
  • Windows : no need to install packages

NOTE: For Windows: the "--internet2" option can be added automatically. see: http://cran.r-project.org/bin/windows/base/rw-FAQ.html#The-Internet-download-functions-fail_002e
NOTE: Linux "export" and Windows "set" command create the variable in the local session scope, they are not permanently stored.

The chosen solution

Windows: no package installed
Linux: force the use of wget
MacOSX: use the "GetProxyConfiguration.jar" to set the right proxy configuration when launching R.

Test Validation

Windows: ok


#1 Updated by Matthieu Decorde almost 9 years ago

  • % Done changed from 20 to 0
  • Parent task set to #1022

#2 Updated by Matthieu Decorde almost 9 years ago

  • Description updated (diff)

#3 Updated by Matthieu Decorde almost 9 years ago

  • Description updated (diff)

#4 Updated by Matthieu Decorde almost 9 years ago

  • % Done changed from 0 to 40

Linux test passed

#5 Updated by Matthieu Decorde over 8 years ago

  • Description updated (diff)

#6 Updated by Sebastien Jacquot over 7 years ago

  • Status changed from New to Feedback
  • Target version changed from TXM 0.7.7 to TXM 0.7.8
  • % Done changed from 40 to 80

Also available in: Atom PDF