package or namespace load failed for ‘tidyverse’: .onAttach failed in attachNamespace() for 'tidyverse', details: call: loadNamespace(name) error: there is no package called ‘cli’

I am using RStudio version 4.02 (2020-06-22). This version was installed by our IT administrator on my laptop connected to our network.

Since then I am actually blocked and get the error message below.
When trying to call the library for the package "cli" I received an error in library (cli) : thwre is no package called 'cli'

As of the moment I am blocked. Shall I ask for a new re-installation of RStudio?

Thanks

Errore: package or namespace load failed for ‘tidyverse’:
 .onAttach failed in attachNamespace() for 'tidyverse', details:
  call: loadNamespace(name)
  error: there is no package called ‘cli’
Inoltre: Warning message:
package ‘tidyverse’ was built under R version 4.0.3

You are confusing your R version with your RStudio version, they are not the same thing.

You are missing the cli package Have you tried to install it? Do you get any error message if you try to install it?

install.packages("cli") 

Rstudio is an IDE for the R programming language so reinstalling it would have no effect on you R package library.

1 Like

Yes, I get an error message when I try to install the 'cli' package, I already tried that but it did not help.

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/

  There is a binary version available but the source version
  is later:
    binary source needs_compilation
cli  2.2.0  2.3.0             FALSE

installing the source package ‘cli’

provo con l'URL 'https://cran.rstudio.com/src/contrib/cli_2.3.0.tar.gz'
Content type 'application/x-gzip' length 134000 bytes (130 KB)
downloaded 130 KB

'\\adb.intra.admin.ch\Userhome$\All\data\Documents'
CMD.EXE Š stato avviato utilizzando il percorso precedente come directory
corrente. I percorsi UNC non sono supportati. Per impostazione predefinita,
verr… utilizzata la directory di Windows.
Errore: package or namespace load failed for 'tidyverse':
 .onAttach failed in attachNamespace() for 'tidyverse', details:
  call: loadNamespace(name)
  error: there is no package called 'cli'
Inoltre: Warning message:
package 'tidyverse' was built under R version 4.0.3 
Esecuzione interrotta
Warning in install.packages :
  installation of package ‘cli’ had non-zero exit status

The downloaded source packages are in
	‘C:\Users\U80822179\AppData\Local\Temp\Rtmpm6Ak4v\downloaded_packages’
1 Like

R has problems working with network drives, change your packages library to a local folder instead.

1 Like

Thank you for your advice. However this time I really went to the office to exploit our network and avoid potemntial connectivity issues.

When installing "tidyverse" I have an error message requesting to install "dbplyr". When I try to install "dbplyr" the execution is interrupted.

'''
installing the source package ‘dbplyr’

provo con l'URL 'https://cran.rstudio.com/src/contrib/dbplyr_2.1.0.tar.gz'
Content type 'application/x-gzip' length 579687 bytes (566 KB)
downloaded 566 KB

Errore: package or namespace load failed for 'tidyverse' in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called 'dbplyr'
Inoltre: Warning message:
package 'tidyverse' was built under R version 4.0.3
Esecuzione interrotta
Warning in install.packages :
installation of package ‘dbplyr’ had non-zero exit status

The downloaded source packages are in
‘C:\Users\U80822179\AppData\Local\Temp\Rtmp4qYk1E\downloaded_packages’
'''

This topic was automatically closed 21 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.