diff --git a/DESCRIPTION b/DESCRIPTION index 7f8d9e0..9b19fa7 100755 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: lingtypology Type: Package Title: Linguistic Typology and Mapping -Version: 1.1.18 +Version: 1.1.19 Depends: R (>= 3.5.0) Imports: leaflet, diff --git a/NEWS b/NEWS index de9efd7..4a84203 100755 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +lingtypology 1.1.19 +- update `lang.gltc()` function + lingtypology 1.1.18 - update `wals` dataset after Michael Cysouw's comment #89 diff --git a/R/lang.gltc.R b/R/lang.gltc.R index bb0abc2..7438edf 100755 --- a/R/lang.gltc.R +++ b/R/lang.gltc.R @@ -14,7 +14,7 @@ lang.gltc <- function(x) { x <- unlist(x) } glottolog <- lingtypology::glottolog - x <- gsub("\\W", "", x) + x <- gsub("\\s{1,}", " ", x) vapply(x, function(y) { if(is.na(y)){ NA_character_ diff --git a/vignettes/lingtypology_intro.R b/vignettes/lingtypology_intro.R index fd4e8fd..c17c4c3 100644 --- a/vignettes/lingtypology_intro.R +++ b/vignettes/lingtypology_intro.R @@ -1,7 +1,7 @@ -## ---- eval=FALSE-------------------------------------------------------------- +## ----eval=FALSE--------------------------------------------------------------- # install.packages("lingtypology", dependencies = TRUE) -## ---- eval= FALSE------------------------------------------------------------- +## ----eval= FALSE-------------------------------------------------------------- # install.packages("remotes") # remotes::install_github("ropensci/lingtypology") diff --git a/vignettes/lingtypology_intro.html b/vignettes/lingtypology_intro.html index 3dee8dc..06391c6 100644 --- a/vignettes/lingtypology_intro.html +++ b/vignettes/lingtypology_intro.html @@ -12,7 +12,7 @@ - + lingtypology: introduction and installation @@ -51,7 +51,7 @@