-
docker for R package debugging - https://www.jimhester.com/post/2017-10-13-docker/
-
Winston Chang's R-debug container - https://github.com/wch/r-debug
usethis::edit_r_makevars()
docker for R package debugging - https://www.jimhester.com/post/2017-10-13-docker/
Winston Chang's R-debug container - https://github.com/wch/r-debug
usethis::edit_r_makevars()
date | topic | url |
---|---|---|
2021-01-11 | issue titles | https://twitter.com/jimhester_/status/1348742632491646976 |
2021-01-13 | new features | https://twitter.com/jimhester_/status/1349369619891564544 |
2021-01-15 | writing too much | https://twitter.com/jimhester_/status/1350076918520045568 |
2021-01-19 | imitation in PRs | https://twitter.com/jimhester_/status/1351533870261399555 |
2021-01-20 | issues crop | https://twitter.com/jimhester_/status/1351930803656257544 |
2021-01-25 | community sites | https://twitter.com/jimhester_/status/1353749482425491456 |
2021-01-29 | second contributions | https://twitter.com/jimhester_/status/1355195248612356099 |
2021-02-01 | robot pedantry | https://twitter.com/jimhester_/status/1356272709345419264 |
db_lifecycles <- function(db) { | |
lifecycle_patterns <- paste0("(?:", | |
paste(collapse = "|", | |
c("lifecycle::badge\\([\\\\]\"", | |
"rlang:::lifecycle\\([\\\\]\"", | |
"list\\(\"lifecycle-", | |
"https://www.tidyverse.org/lifecycle/#" | |
)), | |
")([\\w-]+)" | |
) |
# We want to run this on all pushes on the 'main' branch, whether it is called main or master. | |
on: | |
push: | |
branches: | |
- main | |
- master | |
# We also want to run it on pull requests targetting the 'main' branch | |
pull_request: | |
branches: | |
- main |
Q1. Are all the latest release versions of tidyverse and tidymodels packages already using cpp11?
All tidyverse packages that used Rcpp have been converted except for readxl and lubridate. We plan to finish converting the remainder of the packages in the next 6 months.
Q2. C++20 brings a lot of exciting features to the language, do you plan to also add a {cpp20} package too?
I agree! It is possible, but it would not be for at least 5 to 7 years from now, if ever. Compiler support and availablity often lags the language specifications significantly. However you can definitely use C++20 features with cpp11 in your package today if you like!
Q3. So writable:: is like not using const& in Rcpp?
#!/bin/bash | |
# R recommends setting this to avoid issues with programs like sed: | |
export LANG=C | |
# Get version in major.minor format: | |
VERSION=`sed 's/\([0-9]*.[0-9]*\).[0-9]*.*/\1/' VERSION` | |
# Use version-dev as default folder target: | |
TARGET=${1:-$VERSION-dev} |
ld <- .getNamespaceInfo(asNamespace("datasets"), "lazydata") | |
library(dplyr) | |
library(purrr) | |
df <- tibble::tibble( | |
name = names(ld), | |
data = map(name, ~ ld[[.x]]), | |
is_df = map_lgl(data, inherits, "data.frame") | |
) %>% |
FROM rstudio/r-base:3.6.3-bionic | |
RUN apt-get -qq update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common && \ | |
add-apt-repository -y ppa:ubuntugis/ppa | |
Run apt-get install -y software-properties-common && \ | |
add-apt-repository -y ppa:ubuntugis/ppa && \ | |
apt-get update && \ |
First, the time profiler template has a space in it, which breaks when called from R, so we need to add sym link to it that doesn't have a space.
cd /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Resources/templates
sudo ln -s 'Time Profiler.tracetemplate' 'time-profiler.tracetemplate'
library(readr) | |
the_dates <- c("2020-02-04", "04 February 2020", "2/4/20" , "4/2/20" , "04 Février 2020") | |
the_formats <- c("%Y-%m-%d", "%d %B %Y", "%m/%d/%y", "%d/%m/%y", "%d %B %Y") | |
the_locales <- list(locale("en"), locale("en"), locale("en"), locale("en"), locale("fr")) | |
purrr::pmap( | |
list(the_dates, the_formats, the_locales), | |
function(date, format, locale) { | |
parse_date(date, format = format, locale = locale) | |
} |