How to solve an error while installing Hmisc package in R?
1
0
Entering edit mode
3.3 years ago

I am trying to install hmisc package for some descriptive statistics in R. But I am facing an error given below.

package ‘colorspace’ successfully unpacked and MD5 sums checked Error in install.packages : ERROR: failed to lock directory ‘C:\Users\Hammad\OneDrive\Documents\R\win-library\3.6’ for modifying Try removing ‘C:\Users\Hammad\OneDrive\Documents\R\win-library\3.6/00LOCK’

How can I fix this problem?

Thanks.

Hmisc R • 4.5k views
ADD COMMENT
1
Entering edit mode
3.3 years ago
Hyper_Odin ▴ 320

Find the file “00LOCK” in the directory mentioned manually and delete it

ADD COMMENT
0
Entering edit mode

It worked. Thank you so much. But now, when I start loading it using command library(Hmisc), I get the following warning. Would you please help me to figure it out?

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/ Installing package into ‘C:/Users/Hammad/OneDrive/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘Hmisc’ is in use and will not be installed

ADD REPLY
0
Entering edit mode

I have also downloaded rtool40 and installed it as well. I am not sure is it correctly installed or not, as apparently it seems to be installed. And still receiving the warning message. Please give any suggestion or solution. Thanks.

ADD REPLY
0
Entering edit mode

Yes, if you have installed it from this website (https://cran.r-project.org/bin/windows/Rtools/) it should work. Did you restart the R-studio after installation?

ADD REPLY
0
Entering edit mode

Yes, I have installed it from the mentioned website and I have restarted the R studio now. I think it should work now. Please tell me the command to perform descriptive statistics/ Independent sample t-test. If you write it in steps, I would be obliged.

ADD REPLY
0
Entering edit mode

But, why do want to perform it in R studio? you can also perform it in Excel sheet !

ADD REPLY
0
Entering edit mode

Because I am a beginner in R programming, and I want to learn data analysis using R.

ADD REPLY
0
Entering edit mode

I am sorry, but you have to look it up for yourself. Just google whatever you trying to learn, I think you will find plenty of options.

ADD REPLY

Login before adding your answer.

Traffic: 1930 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6