I am trying to get the size, like in kb or MB, from files allocated on my google drive using the googledrive R package. I could not find any function to get the size of a specific google id. The closest I got was something like:
library(googledrive)
my.id <- "1beivwzTeY7K51tvyJH2Jdidgb7hxCeNh"
drive_reveal(as_id(my.id), "path")
# A tibble: 1 x 4 name path id drive_resource <chr> <chr>
<chr> <list> 1 liver_raw_snp_…Data/folder/ne_s… 1d90WkmUHHT9Ccf-OcU… <named list [3…
Is there a way to get the file size or the total folder size using googledrive R package? Something like the pseudocode below:
drive_reveal(as_id(my.id), "size") #pseudocode to get file/folder sizes