Skip to content

Commit aa66b1f

Browse files
committed
update the function lang.gltc()
1 parent 824090a commit aa66b1f

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: lingtypology
22
Type: Package
33
Title: Linguistic Typology and Mapping
4-
Version: 1.1.18
4+
Version: 1.1.19
55
Depends: R (>= 3.5.0)
66
Imports:
77
leaflet,

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
lingtypology 1.1.19
2+
- update `lang.gltc()` function
3+
14
lingtypology 1.1.18
25
- update `wals` dataset after Michael Cysouw's comment #89
36

R/lang.gltc.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ lang.gltc <- function(x) {
1414
x <- unlist(x)
1515
}
1616
glottolog <- lingtypology::glottolog
17-
x <- gsub("\\W", "", x)
17+
x <- gsub("\\s{1,}", " ", x)
1818
vapply(x, function(y) {
1919
if(is.na(y)){
2020
NA_character_

vignettes/lingtypology_intro.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
## ---- eval=FALSE--------------------------------------------------------------
1+
## ----eval=FALSE---------------------------------------------------------------
22
# install.packages("lingtypology", dependencies = TRUE)
33

4-
## ---- eval= FALSE-------------------------------------------------------------
4+
## ----eval= FALSE--------------------------------------------------------------
55
# install.packages("remotes")
66
# remotes::install_github("ropensci/lingtypology")
77

vignettes/lingtypology_intro.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<meta name="author" content="George Moroz" />
1414

15-
<meta name="date" content="2024-02-04" />
15+
<meta name="date" content="2024-09-20" />
1616

1717
<title>lingtypology: introduction and installation</title>
1818

@@ -51,7 +51,7 @@
5151
</style>
5252
<style type="text/css" data-origin="pandoc">
5353
pre > code.sourceCode { white-space: pre; position: relative; }
54-
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
54+
pre > code.sourceCode > span { line-height: 1.25; }
5555
pre > code.sourceCode > span:empty { height: 1.2em; }
5656
.sourceCode { overflow: visible; }
5757
code.sourceCode > span { color: inherit; text-decoration: inherit; }
@@ -341,13 +341,13 @@
341341
<h1 class="title toc-ignore"><code>lingtypology</code>: introduction and
342342
installation</h1>
343343
<h4 class="author">George Moroz</h4>
344-
<h4 class="date">2024-02-04</h4>
344+
<h4 class="date">2024-09-20</h4>
345345

346346

347347

348348
<div id="what-is-lingtypology" class="section level3">
349349
<h3>What is <code>lingtypology</code>?</h3>
350-
<p>The <code>lingtypology</code> package connects R with the <a href="https://glottolog.org/">Glottolog database (v. 4.8)</a> and
350+
<p>The <code>lingtypology</code> package connects R with the <a href="https://glottolog.org/">Glottolog database (v. 5.0)</a> and
351351
provides an additional functionality for linguistic typology. The
352352
Glottolog database contains a catalogue of the world’s languages. This
353353
package helps researchers to make linguistic maps, using the philosophy

0 commit comments

Comments
 (0)