Lucy
Lucy

Reputation: 51

Tidyverse googledrive - download from Google Drive to RStudio

I am trying to download files from my Google Drive into an R environment running from RStudio Server on an EC2 instance.

I have installed googledrive so I could connect Google Drive to the R environment. I have duly supplied my password. I have checked that the connection works correctly by using drive_find(pattern="Lxxx"), and verified this produced the correct list of files. But

drive_download("L2018")

returns an error:

Error in eval(expr, envir, enclos) : could not find function ":="

How can I make this download work? I thought maybe my list of packages had somehow renamed that function so I removed all of it and restarted R, loading only googledrive. But I got the same message. Thank you for any advice on this.

Upvotes: 0

Views: 551

Answers (1)

cmaimone
cmaimone

Reputation: 576

Looks like googledrive may be missing a dependency. Try adding library(rlang). rlang defines :=.

Upvotes: 1

Related Questions