check for R