R package to lookup genotypes from exome/whole genome/genochip files?

Might anyone know of an R package that takes as input a list of SNPs and a genotype file and returns the genotypes corresponding to the SNP list?