[R-br] liberação R proxy

David Feitosa contato em davidfeitosa.com
Sexta Maio 30 12:01:50 BRT 2014


Oi, Lucas.

Dei uma olhada no stackoverflow e parece que alguém teve sua mesma dúvida:
http://stackoverflow.com/questions/4832560/how-do-i-tell-the-r-interpreter-how-to-use-the-proxy-server

"

You have two options:

   1. Use --internet2 or setInternet2(TRUE) and set the proxy details in
   the control panel, in Internet Options
   2. Do not use either --internet2 or setInternet2(FALSE), but specify the
   environment variables

One trick is, you cannot change your mind between 1 and 2, after you have
tried it in a session, i.e. if you run the command setInternet2(TRUE) and
try to use it e.g. install.packages('reshape2'), should this fail, you
cannot then call setInternet2(FALSE). You have to restart the R session.

When using option 2, one way (which is nice and compact) to specify the
username and password is http_proxy="
http://user:password@proxy.example.com:8080/"

In the past, I have had most luck with option 2
"

Espero que ajude. [?]



Atenciosamente,

David Feitosa

(\_(\
(=°;°)
(("")("")


Em 30 de maio de 2014 11:35, <luc.souza em usp.br> escreveu:

> Prezados, estou com um problema e na verdade não sei bem como explicá-lo:
>
> Sou funcionário da CONAB e para acessar a internet tenho que colocar meu
> login e senha.
> Alguns sites preciso de liberação para baixar dados.
> Por exemplo, para baixar dados de clima do site do inmet.
> Já consegui liberação e ao acessar o site, consigo baixar os dados
> normalmente.
> Quando uso um script do R para baixar os dados automaticamente, fala que
> não consegue se conectar ao host.
> Minha dúvida é se tem algum parâmetro do R em que ele leia meu login e
> senha e consiga identificar o proxy.
>
> Não sei se passei minha dúvida corretamente.
> Obrigado
> Lucas
>
>
> Lucas F. de Souza
> Eng. Agrícola - CONAB
> M.Sc. Produção Vegetal - UENF
> Doutor em Agrometeorologia - ESALQ/USP
> tel: (19) 98160-7068
>
>
> _______________________________________________
> R-br mailing list
> R-br em listas.c3sl.ufpr.br
> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
> Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça
> código mínimo reproduzível.
>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://listas.inf.ufpr.br/pipermail/r-br/attachments/20140530/cc1e8a6e/attachment.html>
-------------- Próxima Parte ----------
Um anexo não-texto foi limpo...
Nome: 330.gif
Tipo: image/gif
Tamanho: 96 bytes
Descrição: não disponível
URL: <http://listas.inf.ufpr.br/pipermail/r-br/attachments/20140530/cc1e8a6e/attachment.gif>


Mais detalhes sobre a lista de discussão R-br