When calling pkg.install, use refresh=refresh, not refresh=False