R apps and tests