I was able to login successfully, and make a new meta data table, using:
synapseLogin(username = 'myusername@place.edu', apiKey = 'MYAPIKEY?)
But there must be a way to do this without storing my personal information in a script using the config file. I found this, below, but it doesn?t really do what I want.
https://www.synapse.org/#!Synapse:syn2375225/wiki/62763
Do you have any suggestions? Thanks!
Created by Laura Sloofman lauragails This information was added to the Getting Started Guide:
http://docs.synapse.org/articles/getting_started.html#using-a-config-file Hi Laura:
You can also have this information added automatically by asking the login function to remember you. All you would do is:
```
synapseLogin(username = 'myusername@place.edu', apiKey = 'MYAPIKEY?, rememberMe=T)
```
then the next time you login in you can do
```
synapseLogin()
```
without any parameters. Thanks! I tried that before and it didn't work for some reason.
But it does work when I remove all spaces. And it now also works when I replace the password field with apikey:=[MY_APIKEY]
Thanks! I note that it seems that you are using the `R` client. I should mention that in a future release you will have the ability to set the path of the configuration file you wish to use, so it is not required to be at `~/.synapseConfig`. That issue is here awaiting some testing:
[Add ability to set config file path for synLogin #277](https://github.com/Sage-Bionetworks/rSynapseClient/pull/277) You can store your credentials in your home directory in a file called `.synapseConfig` (note the period at the beginning of the file which makes this a hidden, system file on Linux-like OS's. The format is as such:
```
[authentication]
username = yourusername
password = yourpassword
```
I just realized that this information is not present at [docs.synapse.org](http://docs.synapse.org) - I will update it accordingly and add the link here for future use.