New user here. Having a problem starting the first R tutorial in Rstudio. Seems to be an issue with tidyverse package install lines 15 to 19.

processing file: ex-data-basics.Rmd
|...... | 11% [setup]
Quitting from lines 15-19 [setup] (ex-data-basics.Rmd)

! package or namespace load failed for 'tidyverse':
.onAttach failed in attachNamespace() for 'tidyverse', details:
call: NULL
error: package or namespace load failed for 'stringr' in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called 'stringi'

  1. base::library(tidyverse)
  2. base::tryCatch(...)
  3. base (local) tryCatchList(expr, classes, parentenv, handlers)
  4. base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
  5. value[3L]
    Execution halted

Can you try to run this in the console:


If you get an error message, copy-paste the whole output here between triple backquotes:

[copy-paste here]
1 Like

Hi @andrep , I would like to recommend that when you work with .Rmd, you have in the first chunk all the libraries so you make sure that all your functions are activated before running your script.

# chunk 1


'''> install.packages("stringi")
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/Andre.Powell/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)
trying URL ''
Content type 'application/zip' length 14998651 bytes (14.3 MB)
downloaded 14.3 MB

package ‘stringi’ successfully unpacked and MD5 sums checked'''

1 Like

Thank you , nice tip. I've also installed this option.

Looks like a successful installation, I expect now it should all work

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