reconhub / linelist

An R package to import, clean, and store case data
https://www.repidemicsconsortium.org/linelist
Other
25 stars 5 forks source link

fix warning in top_values with subset #97

Closed zkamvar closed 4 years ago

zkamvar commented 4 years ago

This will fix #96

# remotes::install_github("reconhub/linelist#97")
library("linelist")
x <- c("b", "b", "b")
x_subset <- c(FALSE, TRUE, TRUE)
top_values(x = x, n = 1, subset = x_subset)
#> [1] "b" "b" "b"

Created on 2019-10-10 by the reprex package (v0.3.0)

thibautjombart commented 4 years ago

Travis's failing on oldres seems unrelated - gpg timeout when installing packages:

sudo add-apt-repository -y "ppa:cran/travis"
gpg: keyring `/tmp/tmpy15p56v7/secring.gpg' created
gpg: keyring `/tmp/tmpy15p56v7/pubring.gpg' created
gpg: requesting key 15B55A9F from hkp server keyserver.ubuntu.com
Error: retrieving gpg key timed out.
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error
The command "sudo add-apt-repository -y "ppa:cran/travis"" failed and exited with 1 during .
Your build has been stopped.

Restarted the job, crossing fingers