The problem is that the statement f <- drive_find(n_max = 30) gives me a list that includes folders and files I do not want. Path = paste("/Users/me/Desktop/Gdrive/", d_path, sep ="")) f <- drive_find(n_max = 30) # this gives me a list of filesĭrive_download(file = as_id(drive_find(pattern = f$name, n_max = 30)$id), I have tried drive_get and drive_download but am unable to specify a specific directory. I am using R and can download files with the following code: install.packages("googledrive")ĭrive_download(file = as_id(drive_find(pattern = "abc.xlsx", n_max = 30)$id),īut I want to download only specific files in a specific directory and I don't know how to specify that directory specifically and exclusively. How do I point it to a specific directory?įor more detail on what I am doing, see below. I want this statement f <- drive_find(n_max=30) to return only the files in a specific directory. I am trying to retrieve files in a specific folder.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |