I am not able to install piwebapi library. Can anyone help me with this.
Not sure what issues you are facing but we do not share the PI Web API Client libraries anymore. So potentially you are referring a resource which doesn't exist anymore.
We offer a set of samples for different technology combinations at https://github.com/osisoft/OSI-Samples. Please pay attention to the license which applies to everything inside the OSI-Samples repository. For R and PI Web API please refer to https://github.com/osisoft/OSI-Samples/tree/master/piwebapi_samples/R.
Retrieving data ...