import rpy2.robjects.packages.SignatureTranslatedAnonymousPackage as STAP
with open('quadro.R') as fh:
    rcode = fh.read()
quadro = STAP(rcode, 'quadro')
quadro.quadro()
Using an R-script in python, which was written for R