passing the bea key string directly into getRel() works, however storing the key to a variable named beaKey and passing that variable in instead, results in an error:
getRel('gdp', lucky = T, beaKey = beaKey)
[1] "Search duration: 0.015s"
[1] "Top match for 'gdp': 100% = Annual GDP by MSA/Metropolitan regions"
Nov 10, 2016 9:40:15 AM it.bancaditalia.oss.sdmx.client.RestSdmxClient runQuery
INFO: Contacting web service with query: http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/ESTAT,met_10r_3gdp,1.0/.MIO_EUR./all
Error in paste0("userid=", beaKey) : object 'beaKey' not found)