Getting Error while installing e1071 package

getting below error while installing "e1071 " package in R.

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
Installing package into ‘C:/Users/hp/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
trying URL ''
Content type 'application/zip' length 1011429 bytes (987 KB)
downloaded 987 KB

Error in install.packages : cannot open file 'C:/Users/hp/Documents/R/win-library/4.0/file3ef07f0771e5/e1071/doc/svmdoc.pdf': Permission denied

Can anyone please help me on this.

Hi and welcome! The solution to the error is in the provided warning. You must install Rtools by following the instructions at Once installed, be sure to restart your R session before trying to install the e1071 package again.

@toryn_stat Rtools is only required if you want to build R packages from source. From the output above, it looks like the OP is trying to install the binaries so Rtools won't help here.

@Pritam I think you may have a corrupted prior installation of e1071. Can you try deleting the folder file3ef07f0771e5 and then try installing e1071 again? Might be a good idea to restart your R session before installing too.

I dont see any files like file3ef07f0771e5 in my system.
I dont know how any corrupt file got downloaded.Because I downloaded R and R Studio from CRAN.I have no clue as to how should I resolve this

Hi Pritam, it must be a frustrating situation.
Do you have admin access to the PC ?
In windows you can choose to see hidden files or not.
in the file window of an explorer in windows OS , theres a View > show/hide > hidden files toggle, is yours set off perhaps ?

@nirgrahamuk I have checked for the hidden files in the path in which R was throwing the error:
Error in install.packages : cannot open file 'C:/Users/hp/Documents/R/win-library/4.0/file5ae064363c71/e1071/doc/svmdoc.pdf': Permission denied.

NO clue as to what should be done next with the error

If you paste C:/Users/hp/Documents/R/win-library/4.0/file5ae064363c71/e1071/doc/svmdoc.pdf directly into the file browers path field, does a pdf open up, or do you get an error message that nothing is there, or does something else happen?

Getting an error.

I have also tried re-installing R & R Studio. Nothing seems to work.

A post was split to a new topic: How to create a new variable based on the values of another variable

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