我正在使用tidyhydat从加拿大环境部下载有关水流量的历史数据。我试图将数据存储在我自己的目录中(而不是默认目录),但收到了一条错误消息。但是,我可以清楚地看到Hydat.sqlite3文件(在我指定的文件夹中约1.1 GB)。
download_hydat(dl_hydat_here = "./Data_Covariates/Raw/")
✔ Downloading HYDAT to ./Data_Covariates/Raw/
• Your local copy of HYDAT published on 2022-10-24 will be overwritten.
|==================================================================================================================================| 100%
• Extracting HYDAT
★ HYDAT successfully downloaded
Error in hy_src(hydat_path) :
No Hydat.sqlite3 found at C:/Users/[redacted]/AppData/Local/tidyhydat/tidyhydat. Run download_hydat() to download the database.
当我下载到默认目录,我得到了同样的错误消息,我 * 不 * 看到这个文件夹中的数据库:
download_hydat()
✔ Downloading HYDAT to C:\Users\[removed]\AppData\Local/tidyhydat/tidyhydat
• Downloading new version of HYDAT created on 2022-10-24
|==================================================================================================================================| 100%
• Extracting HYDAT
✖ HYDAT not successfully downloaded
Error in hy_src(hydat_path) :
No Hydat.sqlite3 found at C:/Users/[redacted]/AppData/Local/tidyhydat/tidyhydat. Run download_hydat() to download the database.
In addition: Warning message:
In file.rename(list.files(tempdir, pattern = "\\.sqlite3$", full.names = TRUE), :
cannot rename file 'C:\Users\[redacted]\AppData\Local\Temp\1\RtmpCEBKiZ/extracted/Hydat.sqlite3' to 'C:\Users\[redacted]\AppData\Local/tidyhydat/tidyhydat/Hydat.sqlite3', reason 'The system cannot find the path specified'
我错过了什么?
1条答案
按热度按时间zzwlnbp81#
最后我需要下载最新版本的软件包,从那里我可以使用默认目录或通过指定到我的个人目录的整个路径来使下载正常工作。