我在 R 中从 HTTPS 下载数据时遇到问题,我尝试使用curl,但它不起作用。
URL <- "https://github.com/Bitakhparsa/Capstone/blob/0850c8f65f74c58e45f6cdb2fc6d966e4c160a78/Plant_1_Generation_Data.csv"
options('download.file.method'='curl')
download.file(URL, destfile = "./data.csv", method="auto")
Run Code Online (Sandbox Code Playgroud)
我使用该代码下载了 CSV 文件,但当我检查数据时格式发生了变化。所以没有正确下载。请有人帮助我吗?