Connect to 'Synapse' APISource:
This function sets 'Synapse' credentials for the user's current session.
'Synapse' username. If NULL, package will search environmental variables for `SYNAPSE_USERNAME`.
'Synapse' password. If NULL, package will search environmental variables for `SYNAPSE_PASSWORD`.
If your credentials are stored as environmental variables, you do not need to call `set_synapse_credentials()` explicitly each session. To store authentication information in your environmental variables, add the following to your .Renviron file, then restart your R session (tip: you can use `usethis::edit_r_environ()` to easily open/edit this file):
`SYNAPSE_USERNAME = <your-username>`
`SYNAPSE_PASSWORD = <your-password>`
Alternatively, you can pass your username and password to each individual data pull function if preferred, although it is recommended that you manage your passwords outside of your scripts for security purposes.