compare multiple years of a similarly structured .csv data
In terms of stats advice, and think the best advice you get will depend on the kind of comparison you'd like to do.
If you're looking to compare summary statistics (for example, comparing mean and variance), then dplyr & ggplot2 would be a pretty nice way to go. A good gentle introduction can be found in the Explore section fo R4DS.
package installation
Relying on packages is pretty common when working with R, and learning how to install them without error is a pretty useful skill. A good way to help help with your package installation problems is by providing as close to a reproducible example as you can. I'd share the text you tried to use to install the package and the error message it returned.
There's also this nice trouble shooting guide, Problem Installing Packages – RStudio Support