Search
57 results for “hadleywickham”
-
-
@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("https://posit.co/download/rstudio-desktop/") |>
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.\\+]+") -
@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("https://posit.co/download/rstudio-desktop/") |>
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.\\+]+") -
@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("https://posit.co/download/rstudio-desktop/") |>
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.\\+]+") -
@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("https://posit.co/download/rstudio-desktop/") |>
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.\\+]+") -
@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("https://posit.co/download/rstudio-desktop/") |>
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.\\+]+") -
@hadleywickham Background: In companion w %dofuture% (https://mastodon.social/@henrikbengtsson/109741654631611943), 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/
-
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
https://r-pkgs.org/release.html
I highly recommend this book for anyone who is writing or maintaining R code! #rstats #statsodon
-
One of my favorite #PositConf things, from @hadleywickham : the Pac-Man inclusiveness "rule"
#PositConf2025 -
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). -
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). -
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). -
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). -
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). -
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 (https://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
-
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 (https://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
-
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 (https://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
-
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 (https://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
-
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 (https://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
-
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 (https://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
-
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
-
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
-
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
-
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
-
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
-
I'm not sure where the #user2025 discussions are happening but I'm curious about one slide in particular from @hadleywickham's talk
https://www.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
-
I'm not sure where the #user2025 discussions are happening but I'm curious about one slide in particular from @hadleywickham's talk
https://www.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
-
I'm not sure where the #user2025 discussions are happening but I'm curious about one slide in particular from @hadleywickham's talk
https://www.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
-
I'm not sure where the #user2025 discussions are happening but I'm curious about one slide in particular from @hadleywickham's talk
https://www.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