Sea urchins tidymodels tutorial not being able to open file

Hey,
I am exploring the tidymodels using the tutorial. I have created a Rproject with a renv (no git). The idea was to follow the sea urchins tutorial. When I run the code from the tutorial I get the following error:

read_csv("https://tidymodels.org/start/models/urchins.csv")
Error in base::nchar(wide_chars$test, type = "width") :
cannot open file '/home/luisa/Documents/Internships/Anish_Soni/ML_model_verification/Mating_model_tidymodels/renv/staging/1/cli/R/sysdata.rdb': No such file or directory
In addition: Warning message:
In base::nchar(wide_chars$test, type = "width") :
restarting interrupted promise evaluation

I am not sure what the problem is. I have installed all packages mentioned in the tutorial, plus curl (required for use of url option in the readr::read_csv().
Any ideas?

Maybe restart yor session and try again?

I can't reproduce the issue:

nrow(readr::read_csv("https://tidymodels.org/start/models/urchins.csv"))
#> Rows: 72 Columns: 3
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): TREAT
#> dbl (2): IV, SUTW
#> 
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
#> [1] 72

Created on 2024-09-05 with reprex v2.1.0

You are right! The re-start did the trick! Thanks. I was starting a new project without renv. No need, it seems.

2 Likes

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.