I want to extract data from PI Historians using R. I want to know is there any package available in R. I know packages available for Python.
What are your trying to do with PI data in R?
The typical flow is to get the PI data into R (often via CSV export) - do the models or stats or visualization etc. in R and, where appropriate (forecasting etc.) write back to PI as future data...
For example see this PI World 2019 HandsOn lab notes:
On Sun, Jul 28, 2019 at 10:40 AM Gopal Gopalkrishnan <firstname.lastname@example.org>
Retrieving data ...