Skip to content

Commit

Permalink
added trycatch statements in vignette so that it can be rebuilt regar…
Browse files Browse the repository at this point in the history
…dless of API status.
  • Loading branch information
Socorro Dominguez committed Aug 14, 2024
1 parent d6c9306 commit 374c47f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: neotoma2
Title: Working with the Neotoma Paleoecology Database
Date: 2024-07-23
Version: 1.0.4
Date: 2024-08-14
Version: 1.0.5
Authors@R:
c(person(given = "Dominguez Vidana",
family = "Socorro",
Expand Down
9 changes: 8 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,11 @@ Updated maintainer.

Fixed errors in the API calls.

Updated README.
Updated README.

# neotoma2 1.0.5

## Remarks for Upgrade 1.0.5

Fixed errors in the API calls. Added `tryCatch` statements in vignette
Changed some minor API calls to `eval=False`
8 changes: 7 additions & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,10 @@ Old maintainer(s):

Fixed errors in the API calls as per CRAN policies.

Fixed filter function for collection units and datasets.
Fixed filter function for collection units and datasets.

-----

## Remarks for Upgrade 1.0.5

Fixed errors in the API calls in vignette adding tryCatch statemetns so that the vignette can be rebuilt regardless of API status.
4 changes: 2 additions & 2 deletions vignettes/neotoma2-package.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -391,15 +391,15 @@ We can also use search elements to search for publications. The `get_publicatio
* `limit`
* `offset`

```{r fulltestPubSearch, eval=FALSE}
```{r fulltestPubSearch}
michPubs <- get_publications(search = "Michigan", limit = 2)
```

This results in a set of `r length(michPubs)` publications from Neotoma, equal to the `limit`. If the number of matching publications is less than the limit then the `length()` will be smaller.

Text matching in Neotoma is approximate, meaning it is a measure of the overall similarity between the search string and the set of article titles. This means that using a nonsense string may still return results results:

```{r nonsenseSearch, eval=FALSE}
```{r nonsenseSearch}
noise <- get_publications(search = "Canada Banada Nanada", limit = 5)
```

Expand Down

0 comments on commit 374c47f

Please sign in to comment.