Problems connecting to a particular site via RStudio
url <- "https://www.jusbrasil.com.br/diarios/busca?q=%22licen%C3%A7a+sem+vencimentos%22&idtopico=T10001849&o=data"
links <- read_html(url) %>% html_nodes('.DocumentSnippet') %>% html_nodes('a')
Generating the following error:
Error in open.connection(x, "rb") :
Failed to connect to www.jusbrasil.com.br port 443: Connection refused
I think it's the configuration of the proxy in RStudio (or in the R itself) I tried the solutions below, but always generating the same error. 1 - Configuring R to Use an HTTP or HTTPS Proxy
2 - The code set_config(use_proxy(url = "meuproxy", port = "meuproxy", user="user" e password = "password"))
. With the proxy and my login and network password.
I know the code works, because I tested it on my home computer and got the links expected.