Error installing tidyr on Ubuntu 18.04 & R 4.0.2

I found the following here: https://github.com/tidyverse/tidyr/issues/1024

The workaround consists in downgrading cpp11 to version 0.1:

devtools::install_version("cpp11", version = "0.1", repos = "http://cran.us.r-project.org")

Looks like the following commit is addressing this, though not sure when it will be pushed to CRAN: https://github.com/r-lib/cpp11/commit/779669a4d0b07e9f9d9382114f44e4f6ff68eebb


It looks like @hadley released an update to tidyr a few days ago, based on the new cpp11 package: https://github.com/tidyverse/tidyr/releases.

For some reason, this caused tidyr to not build for us.

Our (hopefully temporary!) workaround was like this:

(1) Remove dependency on tidyverse. Instead, explicitly depend on the subpackages( like dplyr/ggplot2/etc. )

(2) Install tidyr in the following way:

packageurl <- "https://cran.r-project.org/src/contrib/Archive/tidyr/tidyr_1.1.0.tar.gz"
install.packages(packageurl, repos=NULL, type="source")