Unable to install most packages on Mac

When I start Rstudio I get this error

Error: 1:25: unexpected '/'
1: Sys.setenv(PATH = paste(/
^

When I try to install any packages that say FALSE under binary source need_compilation, those packages fail to install:
There are binary versions available but the source versions are later:
binary source needs_compilation
rlang 0.4.6 0.4.7 TRUE
vctrs 0.3.1 0.3.2 TRUE
broom 0.5.6 0.7.0 FALSE
pillar 1.4.4 1.4.6 FALSE
tibble 3.0.2 3.0.3 TRUE

and I get this:

Error: 1:25: unexpected '/'
1: Sys.setenv(PATH = paste(/
^
Execution halted
Warning in install.packages :
installation of package ‘broom’ had non-zero exit status
Error: 1:25: unexpected '/'
1: Sys.setenv(PATH = paste(/
^
Execution halted
Warning in install.packages :
installation of package ‘pillar’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/m8/t88p2y094_b2qjrfrgdnq56h0000gn/T/RtmpYMxwTW/downloaded_packages’

Are you setting your PATH variable somewhere such as your .Rprofile? Can you identify where the Sys.setenv(PATH = paste(/ error is happening? It seems like paste() is breaking because of an erroneous forward-slash, which is not syntactically valid.

It was something in my .Rprofile. There should have been a " before the /. Thank you for pointing me towards the possible source. It was difficult from the error to know where the problem was originating from.