# NOT RUN {
## list "My Drive" w/o regard for folder hierarchy
drive_search()
## search for files located directly in your root folder
drive_search(q = "'root' in parents")
## filter for folders
drive_search(type = "folder")
drive_search(q = "mimeType = 'application/vnd.google-apps.folder'")
## filter for Google Sheets
drive_search(type = "spreadsheet")
drive_search(q = "mimeType='application/vnd.google-apps.spreadsheet'")
## files whose names match a regex
drive_search(pattern = "jt")
## control page size or cap the number of files returned
drive_search(pageSize = 50)
drive_search(n_max = 75)
drive_search(pageSize = 5, n_max = 15)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab