2022 LFS Update
a-m-on opened this issue · 2 comments
a-m-on commented
Hello,
Are there any planned updates to the canpumf package to accommodate website changes for the 2022 lfs data?
I get the following error when downloading 2022 data:
`> download_lfs_pumf(
- version = "2022-01",
- destination_dir = here("Data"))
Downloading PUMF data.
trying URL 'https://www150.statcan.gc.ca/n1/pub/71m0001x/2021001/2022-01-CSV-eng.zip'
Error in utils::download.file(path, tmp) :
cannot open URL 'https://www150.statcan.gc.ca/n1/pub/71m0001x/2021001/2022-01-CSV-eng.zip'
In addition: Warning message:
In utils::download.file(path, tmp) :
cannot open URL 'https://www150.statcan.gc.ca/n1/pub/71m0001x/2021001/2022-01-CSV-eng.zip': HTTP status was '404 Not Found'`
I wonder if maybe the issue is suffix "-eng"?
Thanks!
mountainMath commented
Thanks for flagging, yes, I think the "-eng" was the issue here. I updated the package and now have (hopefully) a more robust way to get the location of the PUMF data by scraping the webpage for the correct download url. As a byproduct there is also functionality to list the available LFS PUMF data via available_lfs_pumf_versions()
.
a-m-on commented
Thanks for updating so quickly! And the new functionality will be helpful as well.
From: Jens von Bergmann ***@***.***>
Sent: March 14, 2022 8:28 PM
To: mountainMath/canpumf ***@***.***>
Cc: McCoy, Andrea (MLTSD) ***@***.***>; Author ***@***.***>
Subject: Re: [mountainMath/canpumf] 2022 LFS Update (Issue #2)
CAUTION -- EXTERNAL E-MAIL - Do not click links or open attachments unless you recognize the sender.
Thanks for flagging, yes, I think the "-eng" was the issue here. I updated the package and now have (hopefully) a more robust way to get the location of the PUMF data by scraping the webpage for the correct download url. As a byproduct there is also functionality to list the available LFS PUMF data via available_lfs_pumf_versions().
-
Reply to this email directly, view it on GitHub<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FmountainMath%2Fcanpumf%2Fissues%2F2%23issuecomment-1067438083&data=04%7C01%7Candrea.mccoy%40ontario.ca%7C5e5f99416293425a16e208da061a9e6a%7Ccddc1229ac2a4b97b78a0e5cacb5865c%7C0%7C0%7C637829008644620010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=iXq6%2FTe2JGJHUEwSbx5z9822h9m%2FA2hDofuPPqQRe0M%3D&reserved=0>, or unsubscribe<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAHEEA2QIRR2AQ4ZKDAHPLFDU77KP3ANCNFSM5QWX7EAA&data=04%7C01%7Candrea.mccoy%40ontario.ca%7C5e5f99416293425a16e208da061a9e6a%7Ccddc1229ac2a4b97b78a0e5cacb5865c%7C0%7C0%7C637829008644620010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=LKVW8eq0fqvUZOqLvp9iIxdCtmw62ZxpDwEFljg6iKo%3D&reserved=0>.
Triage notifications on the go with GitHub Mobile for iOS<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Candrea.mccoy%40ontario.ca%7C5e5f99416293425a16e208da061a9e6a%7Ccddc1229ac2a4b97b78a0e5cacb5865c%7C0%7C0%7C637829008644620010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=DLQUZ1%2BTd4ngy60W4a5oCega7tsCY8p4Qds%2BDsT0GO0%3D&reserved=0> or Android<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Candrea.mccoy%40ontario.ca%7C5e5f99416293425a16e208da061a9e6a%7Ccddc1229ac2a4b97b78a0e5cacb5865c%7C0%7C0%7C637829008644620010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=uAMsKpg7b5LK4VwWsOZvNw5oPoPpGWOdC32rJPBding%3D&reserved=0>.
You are receiving this because you authored the thread.Message ID: ***@***.***>