Not sure if this behavior is deliberate, but as_id() aborts when the URL contains a query string. When I obtain a URL of a directory directly from Google Drive, it is always present, so I have to remove everything after the question mark to get drive_id. In the documentation as_id() is even described as it "...converts various inputs into an instance of drive_id".
Not sure if this behavior is deliberate, but
as_id()
aborts when the URL contains a query string. When I obtain a URL of a directory directly from Google Drive, it is always present, so I have to remove everything after the question mark to getdrive_id
. In the documentationas_id()
is even described as it "...converts various inputs into an instance ofdrive_id
".Here’s a reprex to be clear:
Created on 2023-12-07 with reprex v2.0.2