tidymodels / cloudstart

RStudio Cloud ☁️ resources to accompany tidymodels.org
Creative Commons Attribution Share Alike 4.0 International
12 stars 5 forks source link

SSL Certificate for Urchins data #7

Open noahtolsen opened 3 years ago

noahtolsen commented 3 years ago

Hello! Very minor because I can always download the data manually in a browser but I think the SSL certificate for the urchins data may have expired, I can't use read_csv to download the data from the tidymodels site as shown in the "Build a Model" page from getting started. Reprex below.

library(tidymodels)  # for the parsnip package, along with the rest of tidymodels
#> Registered S3 method overwritten by 'tune':
#>   method                   from   
#>   required_pkgs.model_spec parsnip

# Helper packages
library(readr)       # for importing data
#> 
#> Attaching package: 'readr'
#> The following object is masked from 'package:yardstick':
#> 
#>     spec
#> The following object is masked from 'package:scales':
#> 
#>     col_factor
library(broom.mixed) # for converting bayesian models to tidy tibbles
library(dotwhisker)  # for visualizing regression results

urchins <-
  # Data were assembled for a tutorial 
  # at https://www.flutterbys.com.au/stats/tut/tut7.5a.html
  read_csv("https://tidymodels.org/start/models/urchins.csv") %>% 
  # Change the names to be a little more verbose
  setNames(c("food_regime", "initial_volume", "width")) %>% 
  # Factors are very helpful for modeling, so we convert one column
  mutate(food_regime = factor(food_regime, levels = c("Initial", "Low", "High")))
#> Error in open.connection(structure(4L, class = c("curl", "connection"), conn_id = <pointer: 0x3cf>), : SSL certificate problem: certificate has expired

Created on 2021-11-10 by the reprex package (v2.0.1)

juliasilge commented 3 years ago

I cannot reproduce this 😬

library(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.
#> # A tibble: 72 Γ— 3
#>    TREAT      IV  SUTW
#>    <chr>   <dbl> <dbl>
#>  1 Initial   3.5 0.01 
#>  2 Initial   5   0.02 
#>  3 Initial   8   0.061
#>  4 Initial  10   0.051
#>  5 Initial  13   0.041
#>  6 Initial  13   0.061
#>  7 Initial  15   0.041
#>  8 Initial  15   0.071
#>  9 Initial  16   0.092
#> 10 Initial  17   0.051
#> # … with 62 more rows

Created on 2021-11-10 by the reprex package (v2.0.1)

Can I get someone else (@hfrick far away in Europe maybe? or anybody really) to confirm whether they do/do not see the certificate problem?

hfrick commented 3 years ago

I can't reproduce either :thinking:

juliasilge commented 3 years ago

@noahtolsen I don't believe there is a problem with the CSV; do you want to try again or maybe check if something is up with your network?