Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to install into R 3.6.2 (windows). #903

Closed
amenokoyushi opened this issue Jan 28, 2020 · 4 comments
Closed

fail to install into R 3.6.2 (windows). #903

amenokoyushi opened this issue Jan 28, 2020 · 4 comments

Comments

@amenokoyushi
Copy link

Dear author,
I am trying to install rlang 0.4.3 into R 3.6.2. But failed, any help?
nevertheless, the former rlang 0.4.2 can be installed correctly.

install.packages("rlang")

There is a binary version available but the source version is later:
binary source needs_compilation
rlang 0.4.2 0.4.3 TRUE

installing the source package ‘rlang’

URL 'https://cran.rstudio.com/src/contrib/rlang_0.4.3.tar.gz' を試しています
Content type 'application/x-gzip' length 813395 bytes (794 KB)
downloaded 794 KB

ERROR: failed to lock directory 'D:/Program Files/R/R-3.6.2/library' for modifying
Try removing 'D:/Program Files/R/R-3.6.2/library/00LOCK-rlang'
Warning in install.packages :
installation of package ‘rlang’ had non-zero exit status

The downloaded source packages are in
‘C:\Users\Public\Documents\Wondershare\CreatorTemp\Rtmpkf4tg3\downloaded_packages’

@yutannihilation
Copy link
Contributor

Try removing 'D:/Program Files/R/R-3.6.2/library/00LOCK-rlang'

Have you tried this?

Note that this probably indicates some prior attempt of installation failed for another reason. This comment might be helpful. rstats-wtf/what-they-forgot#62 (comment)

@amenokoyushi
Copy link
Author

amenokoyushi commented Jan 28, 2020

thank you for your reply.
I have removed the package, restarted the system, even reinstall R studio and R, and change computers.
Then, I found that if I use R-3.6.1 or below, the installation works well without any problem.
I am not very familiar with codes, however, what I wonder is whether this rlang 0.4.3 supports R-3.6.2.

Try removing 'D:/Program Files/R/R-3.6.2/library/00LOCK-rlang'

Have you tried this?

Note that this probably indicates some prior attempt of installation failed for another reason. This comment might be helpful. rstats-wtf/what-they-forgot#62 (comment)

@lionel-
Copy link
Member

lionel- commented Jan 28, 2020

It is very unlikely that R-3.6.2 would be incompatible. Have you removed the LOCK folder prior to reinstalling? This lock folder will prevent any further installation. Also make sure no R session is running, and make sure with sessionInfo() rlang is not loaded before installing. See the link that Hiroaki posted.

@amenokoyushi
Copy link
Author

amenokoyushi commented Jan 29, 2020

Now i have removed 0000LOCK-rlang folder as below.
image
remove the former version of rlang and check there is no rlang
image
install the package use install.package and select yes to install with compilation
image
it didnot work yesterday. but today, it is work now. and I found the new version comes to be rlang 0.4.4. thank you for your replies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants