Open lopierra opened 6 months ago
Also, hiii 👋 😁
Hi @lopierra! Good to see you here.
Ah, sorry for the troubles! We have had troubles with OneDrive in the past as it's a 'virtual' file system - not sure that will work. Instead of using the config file, can you try setting a system environmental variable. Id have to look at what that looks like on Windows but on a Mac terminal.
export SYNAPSE_AUTH_TOKEN=...
I'll have the team take a closer look on Monday when we are back in.
I think that worked - thanks @thomasyu888 !
In my Home directory (the OneDrive folder), I created a .Renviron
file with SYNAPSE_AUTH_TOKEN=...
Restarted R and am now able to log in using synLogin()
No idea why it couldn't find my .synapseConfig file but seems to be able to find the .Renviron file 🤷
I think that worked - thanks @thomasyu888 !
In my Home directory (the OneDrive folder), I created a
.Renviron
file withSYNAPSE_AUTH_TOKEN=...
Restarted R and am now able to log in usingsynLogin()
No idea why it couldn't find my .synapseConfig file but seems to be able to find the .Renviron file 🤷
Awesome! I'll make sure to create a ticket so we add this to the documentation for OneDrive users.
Can it find the synapse cache folder?
Not sure - where do I find that?
Not sure - where do I find that?
Can you try downloading a file with synapser? It will download a file somewhere onto your drive (maybe OneDrive) just wanted to make sure it works.
test_download <- synGet("syn51216461")
test_download$path
resulted in
[1] "c:\\users\\lopi\\.synapsecache\\340\\124656340\\all_cohorts_study_2023-05-17.csv"
That's on my local machine - my "Home" folder according to Sys.getenv("R_USER")
is
C:/Users/lopi/OneDrive - The University of Colorado Denver/Documents
But regardless, it is saving it to synapse cache, so I think that's working properly?
Operating system
Windows 11 My Home directory is a OneDrive (ugh) folder, not sure if that is relevant
Description of the problem
I just installed the latest {synapser} on my new laptop. I got a personal auth token from Synapse and created a .synapseConfig file in my Home directory, but
synLogin()
returnsError in value[[3L]](cond) : No credentials provided.
I am able to log in with
synLogin(authToken = "<my_token>")
so the token seems to be working.My .synapseConfig file looks like this:
Output of
sessionInfo()