Error Downloading a package into R

Error Information:> install.packages("~/Downloads/Math104_1.0.tar", repos = NULL)

Error in install.packages : type == "both" cannot be used with 'repos = NULL'
Description of issue -
trying to download package going up with message : > install.packages("~/Downloads/Math104_1.0.tar", repos = NULL)
Error in install.packages : type == "both" cannot be used with 'repos = NULL'
Steps taken so far -

System Information:

  • RStudio Edition: (Desktop or Server)
  • RStudio Version:
  • OS Version:
  • R Version:

Also:

  • RStudio diagnostics report:
  • Your sessionInfo():
  • RStudio crash report:
  • RStudio application log files:

From Troubleshooting Guide: Using RStudio

See the first S/O. In particular you should be giving the full file path.