using global.R to load package