ARETE: an R package for Automated REtrieval from TExt with large language models