get_file: Download non-Google docs resources from Google Drive

Description Usage Arguments Examples

Description

The function will acknowledge that the file is safe to download. Do be careful when downloading files from the web (even if its on your own Google Drive folder)

If you are downloading images, it would be recommended for you to download the imager package for quick image manipulation and saving. You would need to convert the image from a 3 dimensional array to a 4 dimensional array in that case

This function is temporarily disabled as there are issues to be resolved

Usage

1
get_file(file_id)

Arguments

fileID

ID of the file in Google Drive

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
library(googledrive)
authorize()
file <- get_file('0XXXXXXXXXXXXXXXXc')

# Example with image
library(imager)
dim(file) # Check dimensions of the file dataset
dim(file) <- c(400, 320, 1, 3) # Example dimensions for color image (x, y, z, c)
save.image(file, "file.jpg")

## End(Not run)

davidpmills/googledrive documentation built on May 20, 2019, 2:07 p.m.