Analysis in R: Why not download files in R? The ‘downloader’ package

RAnalytics
スポンサーリンク

This is an introduction to the ‘downloader’ package, which allows you to download files from http, https and ftp URLs in R. For reference, here is an example of downloading a zip file of version 1.4.4 of the ‘httr’ package from CRAN.

Package version is 0.4. Checked with R version 4.2.2.

スポンサーリンク

Install Package

Run the following command.

#Install Package
install.packages("downloader")

Example

See the command and package help for details.

#Loading the library
library("downloader")
library("tcltk")

#Specify where to save the file
setwd(paste(as.character(tkchooseDirectory(title = "save the file"), sep = "", collapse ="")))

#Download version 1.4.4 of the "httr" package
download("https://cloud.r-project.org/bin/windows/contrib/4.2/httr_1.4.4.zip",
         "httr_1.4.4.zip", mode = "wb")

I hope this makes your analysis a little easier !!

Amazon audibleの登録の紹介

プライム会員限定で2024年7月22日まで3か月無料体験キャンペーン開催中です。無料体験後は月額1,500円で聞き放題です。なお、聞き放題対象外の本はAudible会員であれば非会員価格の30%引きで購入することが可能です。

Amazon audibleはプロのナレーターが朗読した本をアプリで聞くことができるサービスで、オフライン再生も可能です。通勤や作業のお供にAmazon audibleのご登録はいかがでしょうか。

・AmazonのAudible

https://amzn.to/3L4FI5o

Copied title and URL