On Fri, Apr 5, 2013 at 3:20 PM, Gary <gwengstrom at yahoo.com>
wrote:>
> Tried several ways to connect to Internet. Perhaps R help could point me in
the right direction to make this connection work.
>
> setInternet2(use = TRUE)
>> download.file("
> +
http://image.shutterstock.com/display_pic_with_logo/322090/322090,1307359665,10/stock-photo-car-silhouette-for-race-sports-design-vector-version-also-available-in-gallery-78667174.jpg
> + ",
> + destfile=file.path("..",
"Desktop/racing_car.jpg"), mode="wb")
> Error in
download.file("\nhttp://image.shutterstock.com/display_pic_with_logo/322090/322090,1307359665,10/stock-photo-car-silhouette-for-race-sports-design-vector-version-also-available-in-gallery-78667174.jpg\n",
:
Off the cuff, it seems that the newline breaks around the link but
inside the quote marks are your problem. See the "\n" at the front and
back of the URL -- shouldn't be there.
MW
> unsupported URL scheme
> G
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.