Local polynomials in R