Bug 380634 - NEEDINFO: setting up proxy info on GNU/Linux with Gnome
Summary: NEEDINFO: setting up proxy info on GNU/Linux with Gnome
Status: RESOLVED FIXED
Alias: None
Product: rkward
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: RKWard Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-28 14:07 UTC by RKWard Team
Modified: 2011-10-14 13:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RKWard Team 2011-07-28 14:07:56 UTC
-- Originally posted by (AT sourceforge.net): xavidp --

-- This ticket was imported from http://sourceforge.net/p/rkward/feature-requests/100 on 2017-05-31 14:48:58 +0100 --
Hi all:

I'm using RKward 0.5.6 with R 2.13 for work inside the Gnome 2.x environment on a GNU/Linux machine \(Ubuntu 11.04, 64 bits\). Our research center is behind a firewall.

When I try to fetch some information from internet with some XML functions, I can't do it thorugh RKWard. Example \(between lines of dashes\):
\--------------------------------------------------
> require\(XML\)
Loading required package: XML
> u = "http://cran.r-project.org/web/packages/available\_packages\_by\_date.html"
> t = readHTMLTable\(u\)\[\[1\]\]
Error in htmlParse\(doc\) : 
error in creating parser for http://cran.r-project.org/web/packages/available\_packages\_by\_date.html
Calls: readHTMLTable -> readHTMLTable -> htmlParse -> .Call
\--------------------------------------------------

However, when I run the same lines on a terminal in the same computer, they all run fine \(no errors reported for htmlparse\).

The computer has already been setup to use the firewall in R on a console, by means of adding this line to /etc/R/Renviron file:

HTTP\_PROXY=$\{HTTP\_PROXY="http://conf\_www.ir.vhebron.net:8081"\}

just above where it says;:
\#\#\# Local Variables: \*\*\*

Therefore, I guess that this is some sort of issue of missing proxy information for RKward when on a Gnome-based environment. All other gnome-based programs run fine \(prxoy info added everwhere as needed\).

I tried adding info for the proxy in systemsettings, so that KDE dialogues for network config are open at the gnome desktop, and setting up there the proxy info, but no way: rkward produces the same error.

Konqueror, as a reference, can browse internet, with the proxy info.
But I don't know how to do that with RKWard.

Any idea?

Thanks in advanced

Xavier de Pedro, Ph.D.
-- Labels: Settings / options --
Comment 1 Thomas Friedrichsmeier 2011-07-29 07:49:46 UTC
Hi\!

Based on the given information, I am not quite convinced this is an issue with the proxy. Two things to try, first:
1\) Try
download.file \("http://cran.r-project.org/web/packages/available\_packages\_by\_date.html", "somewhere"\)
2\) What's the output of
Sys.getenv \("HTTP\_PROXY"\)
? Does it change anything, if you run 
Sys.setenv \(HTTP\_PROXY="http://conf\_www.ir.vhebron.net:8081"\)

Also, having the output of 
rk.sessionInfo\(\)
might be helpful.

Regards
Thomas

P.S.: The line
HTTP\_PROXY=$\{HTTP\_PROXY="http://conf\_www.ir.vhebron.net:8081"\}
looks strange to me. Shouldn't this be just
HTTP\_PROXY="http://conf\_www.ir.vhebron.net:8081"
? Have you tried the command in a plain R session?
Comment 2 Thomas Friedrichsmeier 2011-07-29 07:49:46 UTC
- **summary**: seting up proxy info on GNU/Linux with Gnome --> NEEDINFO: setting up proxy info on GNU/Linux with Gnome
Comment 3 RKWard Team 2011-10-14 13:25:39 UTC
-- Originally posted by (AT sourceforge.net): xavidp --
Hi Thomas, and sorry for the long delay \(again\) in replying your answer...

You got the solution in your PS message.

When I arrived to this reasearch unit I was told the that syntax to at to the Renviron file for the proxy was:
HTTP\_PROXY=$\{HTTP\_PROXY="http://conf\_www.ir.vhebron.net:8081"\}

and that syntax seems to work for R sessions in console, and a few other programs \(Rstudio, emacs, etc\). But not for RKward or apache, either.

However, with the simpler syntax to set the ennvironment variable as you suggested, rkward comes back to work, as well as apache, etc.

Thanks for your help\!

FYI, with this syntax:
HTTP\_PROXY=$\{HTTP\_PROXY="http://conf\_www.ir.vhebron.net:8081"\}

the output of 

Sys.getenv \("HTTP\_PROXY"\) 

was: 

> Sys.getenv \("HTTP\_PROXY"\)
\[1\] "$\{HTTP\_PROXY"

and download.file didn't succeed through rkward \(but it did succeed through r console on a terminal\).

but when I added your syntax HTTP\_PROXY="http://conf\_www.ir.vhebron.net:8081", then 

> Sys.getenv \("HTTP\_PROXY"\)
\[1\] "http://conf\_www.ir.vhebron.net:8081"

So, thanks thomas for your hint\!
Comment 4 RKWard Team 2011-10-14 13:26:11 UTC
-- Originally posted by (AT sourceforge.net): xavidp --
- **status**: open --> closed