run R functions from anything