home.social

Search

57 results for “hadleywickham”

  1. @hadleywickham You asked on Twitter last fall for examples that don't work. This used to pull the latest version of but doesn't work anymore (unless I save the page first)

    spans <- xml2::read_html("posit.co/download/rstudio-desk") |>
    rvest::html_element(".mt-\\[40px\\].body-md-regular") |>
    rvest::html_elements("span") |>
    rvest::html_text() |>
    stringr::str_extract("Version: .*")

    rstudio_latest_version <- spans[!is.na(spans)] |>
    stringr::str_extract("[0-9.\\+]+")

  2. @hadleywickham You asked on Twitter last fall for #rvest examples that don't work. This used to pull the latest version of #RStudio but doesn't work anymore (unless I save the page first)

    spans <- xml2::read_html("posit.co/download/rstudio-desk") |>
    rvest::html_element(".mt-\\[40px\\].body-md-regular") |>
    rvest::html_elements("span") |>
    rvest::html_text() |>
    stringr::str_extract("Version: .*")

    rstudio_latest_version <- spans[!is.na(spans)] |>
    stringr::str_extract("[0-9.\\+]+")

  3. @hadleywickham You asked on Twitter last fall for #rvest examples that don't work. This used to pull the latest version of #RStudio but doesn't work anymore (unless I save the page first)

    spans <- xml2::read_html("posit.co/download/rstudio-desk") |>
    rvest::html_element(".mt-\\[40px\\].body-md-regular") |>
    rvest::html_elements("span") |>
    rvest::html_text() |>
    stringr::str_extract("Version: .*")

    rstudio_latest_version <- spans[!is.na(spans)] |>
    stringr::str_extract("[0-9.\\+]+")

  4. @hadleywickham You asked on Twitter last fall for #rvest examples that don't work. This used to pull the latest version of #RStudio but doesn't work anymore (unless I save the page first)

    spans <- xml2::read_html("posit.co/download/rstudio-desk") |>
    rvest::html_element(".mt-\\[40px\\].body-md-regular") |>
    rvest::html_elements("span") |>
    rvest::html_text() |>
    stringr::str_extract("Version: .*")

    rstudio_latest_version <- spans[!is.na(spans)] |>
    stringr::str_extract("[0-9.\\+]+")

  5. @hadleywickham You asked on Twitter last fall for #rvest examples that don't work. This used to pull the latest version of #RStudio but doesn't work anymore (unless I save the page first)

    spans <- xml2::read_html("posit.co/download/rstudio-desk") |>
    rvest::html_element(".mt-\\[40px\\].body-md-regular") |>
    rvest::html_elements("span") |>
    rvest::html_text() |>
    stringr::str_extract("Version: .*")

    rstudio_latest_version <- spans[!is.na(spans)] |>
    stringr::str_extract("[0-9.\\+]+")

  6. @hadleywickham Background: In companion w %dofuture% (mastodon.social/@henrikbengtss), I'd like to introduce:

    z <- future_foreach2(X=1:3, Y=3:1, FUN=function(x, y) {
    sqrt(x/y)
    })

    to be the same as:

    z <- foreach(X=1:3, Y=3:1) %dofuture% {
    sqrt(x/y)
    }

    In the #futureverse, prefix 'future_' indicates a duality, e.g. future_lapply() for lapply() & future_map() for purrr::map(). So, we cannot call it future_foreach(), because that would incorrectly suggest it is a duality of foreach()

    2/

  7. I mostly followed the 2nd edition of "R Packages" by @hadleywickham @jennybryan with a few minor tweaks to account for the differences between GitHub and Bitbucket/Jira

    r-pkgs.org/release.html

    I highly recommend this book for anyone who is writing or maintaining R code! #rstats #statsodon

  8. 8/ 🙏 Thanks to
    @rOpenSci ,
    @hadleywickham , and
    @jennybryan for their guides and books! The package currently passes #rcmdcheck and almost passes #pkgcheck (need to write tests).

  9. 8/ 🙏 Thanks to
    @rOpenSci ,
    @hadleywickham , and
    @jennybryan for their guides and books! The package currently passes #rcmdcheck and almost passes #pkgcheck (need to write tests).

  10. 8/ 🙏 Thanks to
    @rOpenSci ,
    @hadleywickham , and
    @jennybryan for their guides and books! The package currently passes #rcmdcheck and almost passes #pkgcheck (need to write tests).

  11. 8/ 🙏 Thanks to
    @rOpenSci ,
    @hadleywickham , and
    @jennybryan for their guides and books! The package currently passes #rcmdcheck and almost passes #pkgcheck (need to write tests).

  12. 8/ 🙏 Thanks to
    @rOpenSci ,
    @hadleywickham , and
    @jennybryan for their guides and books! The package currently passes #rcmdcheck and almost passes #pkgcheck (need to write tests).

  13. When we teach R to #linguistics students we often use the #babynames package by @hadleywickham for exercises. It's a very rich dataset, and I love using it, and so I was inspired to make a Swedish equivalent. The #barnnamn package (github.com/evoling/barnnamn) is your plugin replacement for all Swedish baby name needs. It is based on data from #StatistiskaCentralbyrån covering the period 1998–2021. I update the package every year. #onomastics #rstats #lingvistik #svenska

  14. When we teach R to #linguistics students we often use the #babynames package by @hadleywickham for exercises. It's a very rich dataset, and I love using it, and so I was inspired to make a Swedish equivalent. The #barnnamn package (github.com/evoling/barnnamn) is your plugin replacement for all Swedish baby name needs. It is based on data from #StatistiskaCentralbyrån covering the period 1998–2021. I update the package every year. #onomastics #rstats #lingvistik #svenska

  15. When we teach R to #linguistics students we often use the #babynames package by @hadleywickham for exercises. It's a very rich dataset, and I love using it, and so I was inspired to make a Swedish equivalent. The #barnnamn package (github.com/evoling/barnnamn) is your plugin replacement for all Swedish baby name needs. It is based on data from #StatistiskaCentralbyrån covering the period 1998–2021. I update the package every year. #onomastics #rstats #lingvistik #svenska

  16. When we teach R to #linguistics students we often use the #babynames package by @hadleywickham for exercises. It's a very rich dataset, and I love using it, and so I was inspired to make a Swedish equivalent. The #barnnamn package (github.com/evoling/barnnamn) is your plugin replacement for all Swedish baby name needs. It is based on data from #StatistiskaCentralbyrån covering the period 1998–2021. I update the package every year. #onomastics #rstats #lingvistik #svenska

  17. When we teach R to #linguistics students we often use the #babynames package by @hadleywickham for exercises. It's a very rich dataset, and I love using it, and so I was inspired to make a Swedish equivalent. The #barnnamn package (github.com/evoling/barnnamn) is your plugin replacement for all Swedish baby name needs. It is based on data from #StatistiskaCentralbyrån covering the period 1998–2021. I update the package every year. #onomastics #rstats #lingvistik #svenska

  18. When we teach R to #linguistics students we often use the #babynames package by @hadleywickham for exercises. It's a very rich dataset, and I love using it, and so I was inspired to make a Swedish equivalent. The #barnnamn package (github.com/evoling/barnnamn) is your plugin replacement for all Swedish baby name needs. It is based on data from #StatistiskaCentralbyrån covering the period 1998–2021. I update the package every year. #onomastics #rstats #lingvistik #svenska

  19. Shouting to the void: How to properly namespace #duckdb / #duckplyr in my #rstats packages?

    One of @hadleywickham core style recommendations for package development is that every external function needs to be explicitly namespaced:

    function_in_my_package <- function(df, x, ...) {
    df |> dplyr::mutate(xx = stringr::str_do_something(x))
    # implict return
    }

    1/maybe 4

  20. Shouting to the void: How to properly namespace #duckdb / #duckplyr in my #rstats packages?

    One of @hadleywickham core style recommendations for package development is that every external function needs to be explicitly namespaced:

    function_in_my_package <- function(df, x, ...) {
    df |> dplyr::mutate(xx = stringr::str_do_something(x))
    # implict return
    }

    1/maybe 4

  21. Shouting to the void: How to properly namespace #duckdb / #duckplyr in my #rstats packages?

    One of @hadleywickham core style recommendations for package development is that every external function needs to be explicitly namespaced:

    function_in_my_package <- function(df, x, ...) {
    df |> dplyr::mutate(xx = stringr::str_do_something(x))
    # implict return
    }

    1/maybe 4

  22. Shouting to the void: How to properly namespace #duckdb / #duckplyr in my #rstats packages?

    One of @hadleywickham core style recommendations for package development is that every external function needs to be explicitly namespaced:

    function_in_my_package <- function(df, x, ...) {
    df |> dplyr::mutate(xx = stringr::str_do_something(x))
    # implict return
    }

    1/maybe 4

  23. Shouting to the void: How to properly namespace #duckdb / #duckplyr in my #rstats packages?

    One of @hadleywickham core style recommendations for package development is that every external function needs to be explicitly namespaced:

    function_in_my_package <- function(df, x, ...) {
    df |> dplyr::mutate(xx = stringr::str_do_something(x))
    # implict return
    }

    1/maybe 4

  24. I'm not sure where the discussions are happening but I'm curious about one slide in particular from @hadleywickham's talk

    youtube.com/live/ctc2kx3LxG8

    why the addition of 0 for each term of the multiplication? Is it to have NA values fail early? I was hoping it would be explained but not that I saw

  25. I'm not sure where the #user2025 discussions are happening but I'm curious about one slide in particular from @hadleywickham's talk

    youtube.com/live/ctc2kx3LxG8

    why the addition of 0 for each term of the multiplication? Is it to have NA values fail early? I was hoping it would be explained but not that I saw

  26. I'm not sure where the #user2025 discussions are happening but I'm curious about one slide in particular from @hadleywickham's talk

    youtube.com/live/ctc2kx3LxG8

    why the addition of 0 for each term of the multiplication? Is it to have NA values fail early? I was hoping it would be explained but not that I saw

  27. I'm not sure where the #user2025 discussions are happening but I'm curious about one slide in particular from @hadleywickham's talk

    youtube.com/live/ctc2kx3LxG8

    why the addition of 0 for each term of the multiplication? Is it to have NA values fail early? I was hoping it would be explained but not that I saw