switch to getLayer in package instead of importing from rCharts2