'Plotting eigenvalues in R?

I was trying to visualize eigenvalues with my data for PCA using prcomp(), but could not get the Scree plot, which I had before, instead got some errors.

This is my code:

fviz_eig(res.pca)

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace ‘rlang’ 0.4.11 is already loaded, but >= 1.0.0 is required.

I updated my library, installed also packages "scales" but still it was not working.



Solution 1:[1]

Update your package. The installed version of is 0.4.11, however, the requirement is >= 1.0.0. You may reinstall by:

install.packages("rlang")

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MYaseen208