Thanks! I've tried to install the lifecycle package but it doesn't seem to work. I keep getting this message:
Warning: invalid package 'C:\Users\Chris'
Warning: invalid package 'Yip\AppData\Local\Temp\Rtmp6ZbYN5/downloaded_packages/lifecycle_1.0.0.tar.gz'
Error: ERROR: no packages specified
In R CMD INSTALL
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
I can't be sure since you are not posting the complete output message but it seems to me your library path includes non-ASCII characters or empty spaces, R has problems with that very often.
If that is indeed the case, you can avoid this problem by setting your default package library somewhere else. You can change the default library folder by setting your R_LIBS_SITE environmental variable on a .Reviron or .Rprofile file
# In a .Renviron file you can set it by adding this line
R_LIBS_SITE="C:\\Program Files\\R\\R-4.0.3\\library"
For a more detailed explanation, you can read this blog post