Unable to Install and Use library(rpivotTable) in RStudio

package-installation

#1

Unable to use command library(rpivotTable) in RStudio

its giving below error.
Also installed library(htmlwidgets), however of no use, Pls help

Error: package or namespace load failed for ‘rpivotTable’ in get(Info[i, 1], envir = env):
cannot open file 'C:/Users/Sonic/Documents/R/R-3.5.0/library/digest/R/digest.rdb': No such file or directory
In addition: Warning message:
package ‘rpivotTable’ was built under R version 3.5.1


#2

Did you try to run library(rpivotTable) immediately after installing rpivotTable or some other package? This sort of error can sometimes happen when you are installing and loading packages in the same session. Generally, it's a good idea to restart R both before and after installing new packages. (Note that's restart R, not RStudio — if you're not sure of the difference, see: Differentiating R from RStudio)

What happens when you restart your R session (Session menu > Restart R) and then run library(rpivotTable) again, before running any other code?


#3

Hi,

Thanks a lot. The issue got resolved I was trying to install the same directly in RStudio. This time 1st I have installed the same in R and then used the same in RStudio. The function is working fine.

Thanks a lot.

Regards,

Amit