Install sparklyr package error

I am having trouble installing the sparklyr package. It gives the following error after running install.packages("sparklyr"):

'"C:\PROGRA~1\R\R-41~1.0/bin/x64/Rterm.exe"' is not recognized as an internal or external command,
operable program or batch file.

  • For one, I cannot find the Rterm.exe file within C:\Program Files\R\R-4.1.0\bin\x64 but I can find the other executables

  • I have tried searching for similar issues people have had for installing other R packages though I'm unsure if they're relevant:
    --> One thing I've seen is idea that there's issues with 'special characters' (is this reason it says 'C:\PROGRA~1...' instead of 'C:\Program Files\R\R-4.1.0\bin\x64' ?)

I am using 64-bit Windows 10 Enterprise.

There may have been trouble downloading the tar.gz file as well as trying to download onto a work computer.

This was resolved by specifying type = 'binary' and specifying a proxy:

Sys.setenv("http_proxy" = paste0('http://webproxy.my_company.com'))

install.packages("sparklyr", type = 'binary')