The following code works fine:
register_google(key=\'[an API key]\') map <- get_googlemap(maptype="satellite",center=c(lon=108,lat=32.5),zoom=3)