Multiple errors installing tidyverse

My initial problem was after installing tidyverse I couldn't get today() or now() to work. I realized I had some errors when installing tidyverse. broom and other packages are having different errors.

I'm pretty new to R, I've spent a couple hours trying to troubleshoot this via multiple forums. None of the solutions seem to work. Any help would be great. I'm on windows 10, RStudio Build 382, I've uninstalled and reinstalled multiple times. When installing tidyverse, most packages unpack(?) fine. But a dozen or so give me the errors below.

Not sure if it's because I have a couple spaces in my C drive username? Some people that didn't seem to matter for. Since I'm new, this is pretty discouraging but hoping someone can help!

Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘generics’ had non-zero exit status
Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘withr’ had non-zero exit status
Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘tinytex’ had non-zero exit status
Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘crayon’ had non-zero exit status
Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘knitr’ had non-zero exit status
Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘gargle’ had non-zero exit status
Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘dtplyr’ had non-zero exit status
Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘hms’ had non-zero exit status
Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘pillar’ had non-zero exit status
Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘rvest’ had non-zero exit status
Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘rmarkdown’ had non-zero exit status
Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘broom’ had non-zero exit status
Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘googledrive’ had non-zero exit status
Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘reprex’ had non-zero exit status
Error: ERROR: no packages specified
The filename, directory name, or volume label syntax is incorrect.
The system cannot find the path specified.
Warning in install.packages :
installation of package ‘googlesheets4’ had non-zero exit status

The downloaded source packages are in
‘C:\Users\USER& USER\AppData\Local\Temp\RtmpQVRo6g\downloaded_packages’

USER & USER is not the real name, but similar format (two spaces, ampersand).

I've also tried:
install.packages("broom", lib = "C:\Users\USER& USER\OneDrive\Documents\R\R-Packages")
install.packages("backports")
install.packages("broom")

but that did not work either.

SOLVED!

As a newbie I didn't realize my version of R was old, even though I had the latest version of RStudio installed. It seems like a pain to install the latest version of R, but you can do it in RStudio by running:

require(installr) updateR()
require(installr) updateR() #
library(installr)
updateR()

I had to update a lot of my packages after, some via the update button, and some had to manually be typed in. But my MAIN issue, not being able to use now() and today() was solved.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.