Error installing all R packages: "file not a macOS binary package"

I am having repeated errors when trying to install all packages in the new RStudio. I have tried on Mac Monterey and Ventura, and with old and new versions of RStudio.

The packages do install in base R, so I know this is an RStudio problem.

This is the most stubborn error I've ever encountered. Have spent the better part of 2 days trying to install any package on RStudio.

ERROR MESSAGE:

sh: tar: command not found
Warning in install.packages :
  error in running command
Warning in install.packages :
  'tar' returned non-zero exit code 127
Error in install.packages : file ‘/var/folders/sb/fll6frln7pqg42sztcn6z_4c0000gn/T//RtmpuMXPIZ/downloaded_packages/sys_3.4.1.tgz’ is not a macOS binary package
platform       x86_64-apple-darwin17.0     
arch           x86_64                      
os             darwin17.0                  
system         x86_64, darwin17.0          
status                                     
major          4                           
minor          2.2                         
year           2022                        
month          10                          
day            31                          
svn rev        83211                       
language       R                           
version.string R version 4.2.2 (2022-10-31)
nickname       Innocent and Trusting   

This topic was automatically closed 21 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.