I would like to check if url redirects to another page in R
http, r, url
Solution
Check out the `httr` package, and there the `GET` function:
> library(httr)
> names(GET("http://www.stackoverflow.com"))
[1] "url" "handle" "status_code" "headers" "cookies"
[6] "content" "times" "config"
> GET("http://www.stackoverflow.com")$status_code
[1] 200
Problem
I need to check if the url redirects to another page in R. Is it possible ?