Skip to content

Commit

Permalink
Merge branch 'master' into intdist
Browse files Browse the repository at this point in the history
  • Loading branch information
markvanderloo committed Jul 11, 2015
2 parents 09a4352 + e975b31 commit fe22556
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 19 deletions.
49 changes: 31 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,37 @@ Also, there are some utility functions:
* `phonetic()` computes phonetic codes of strings (currently only soundex)
* `printable_ascii()` is a utility function that detects non-printable ascii or non-ascii characters.


Installation
------------
To install the latest release from CRAN, open an R terminal and type

`install.packages('stringdist')`

Beta versions are released through my [drat](http://www.r-pkg.org/pkg/drat) repository. These versions build and pass all current tests correctly on Linux
but builds have not been tested on all architectures that [CRAN](http://cran.r-projecet.org) supports. Windows users will also need to
have [rtools](http://cran.r-project.org/bin/windows/Rtools/) installed.

```
drat::addRepo("markvanderloo")
install.packages("stringdist")
```

To obtain the package from the very latest source code open a `bash` terminal (or `git bash` if you work under Windows
with `msysgit`) and type

```
git clone https://github.com/markvanderloo/stringdist.git
cd stringdist
bash ./build.bash
R CMD INSTALL output/stringdist_*.tar.gz
```

Warning: the github version can change any time and may not even build properly. As most
of the code is written in `C`, the development version may crash your `R`-session.



Resources
----------
* A [paper](http://journal.r-project.org/archive/2014-1/loo.pdf) on stringdist has been published in the R-journal
Expand Down Expand Up @@ -69,23 +100,5 @@ integers. I'm abandoning this expressing all distances as `double` (R `numeric`)
to use `Inf`.


Installation
------------
To install the latest release from CRAN, open an R terminal and type

`install.packages('stringdist')`

To obtain the package from source code open a `bash` terminal (or `git bash` if you work under Windows
with `msysgit`) and type

```
git clone https://github.com/markvanderloo/stringdist.git
cd stringdist
bash ./build.bash
R CMD INSTALL output/stringdist_*.tar.gz
```

Warning: the github version can change any time and may not even build properly. As most
of the code is written in `C`, the development version may crash your `R`-session.


2 changes: 1 addition & 1 deletion build/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LazyLoad: yes
Authors@R: c( person("Mark", "van der Loo", role=c("aut","cre"),email="mark.vanderloo@gmail.com")
, person("Jan", "van der Laan", role="ctb"),person("R Core Team","",role=c("ctb")),person("Nick","Logan",role="ctb"))
Description: Implements an approximate string matching version of R's native 'match' function. Can calculate various string distances based on edits (damerau-levenshtein, hamming, levenshtein, optimal sting alignment), qgrams (q-gram, cosine, jaccard distance) or heuristic metrics (jaro, jaro-winkler). An implementation of soundex is provided as well.
Version: 0.9.2
Version: 0.9.3
Depends: R (>= 2.15.3)
Imports: parallel, methods
URL: https://github.com/markvanderloo/stringdist
Expand Down
2 changes: 2 additions & 0 deletions pkg/R/stringdist.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
#'
{}

setGeneric("stringdist", function(a,b,...) standardGeneric("stringdist"))




Expand Down

0 comments on commit fe22556

Please sign in to comment.