"arrange_() was deprecated in dplyr 0.7.0 and is now defunct" error occurs when creating a chart

If you see the following error when creating a chart:

arrange_() was deprecated in dplyr 0.7.0 and is now defunct

This error can occur when the installed R packages are in an inconsistent state due to version mismatches. You can usually resolve the issue by resetting the installed R packages to their factory settings.

Please follow the instructions below to reset the R packages: