Inability to install packages after updating R and R Studio

Please, I just updated my version R from 4.2.2 to 4.3.0, and also R Studio. Now, when I want to reinstall my packages, I get the error message below in my console:

[1/33] Installing cli...

Error: package 'cli' is not available
In addition: Warning messages:
1: In value[[3L]](cond) : restarting interrupted promise evaluation
2: error downloading 'https://cran.rstudio.com/src/contrib/PACKAGES.rds' [curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.] 
3: error downloading 'https://rstudio-buildtools.s3.amazonaws.com/renv/mran/packages.rds' [curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.] 
Traceback (most recent calls last):
10: sourceWithProgress(script = "C:/Users/IFEANYI/AppData/Local/Temp/c178-f1f5-f5e2-a8b4", 
        encoding = "UTF-8", con = stdout(), importRdata = NULL, exportRdata = NULL)
 9: eval(statements[[idx]], envir = sourceEnv)
 8: eval(statements[[idx]], envir = sourceEnv)
 7: renv::install("cli")
 6: retrieve(names(remotes))
 5: handler(package, renv_retrieve_impl(package))
 4: renv_retrieve_impl(package)
 3: renv_available_packages_latest(package)
 2: stopf("package '%s' is not available", package)
 1: stop(sprintf(fmt, ...), call. = call.)
Execution halted

I then tried to install package cli but got the error message below:

install.packages("cli")
Error: package 'cli' is not available
In addition: Warning messages:
1: In value[[3L]](cond) : restarting interrupted promise evaluation
2: error downloading 'https://cran.rstudio.com/src/contrib/PACKAGES.rds' [curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.] 
3: error downloading 'https://rstudio-buildtools.s3.amazonaws.com/renv/mran/packages.rds' [curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.]

Please, I need your urgent help as my job is dependent on my getting R and R Studio to work. Thank you very much.

1 Like

You could try installing from a different mirror, for example:

install.packages("cli", repos = "https://cran.case.edu")

Otherwise you can also try to avoid curl for downloading:

install.packages("cli", method = "wget")

(method = "wget" should work on Linux, method = "wininet" on Windows, you can also try internal, curl and libcurl)

2 Likes

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.