Skip to content

Commit

Permalink
fixes related to CRAN review
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorrit Poelen committed Jan 28, 2015
1 parent 0b49250 commit 1e6ff4c
Show file tree
Hide file tree
Showing 7 changed files with 223 additions and 349 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.travis.yml
.gitignore
inst/.gitkeep
inst/vign
cran-comments.md
Makefile
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Description: A programmatic interface to the web service methods
taxonomic name. In addition, it supports Cypher, a graph query
language, to allow for executing custom queries on the GloBI
aggregate species interaction dataset.
Version: 0.2.3
Version: 0.2.4
Date: 2015-01-27
Authors@R: c(person("Jorrit", "Poelen", role = c("aut", "cre"),
email = "[email protected]"),
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
all: move rmd2md

move:
cp inst/vign/rglobi_vignette.md vignettes

rmd2md:
cd vignettes;\
mv rglobi_vignette.md rglobi_vignette.Rmd
9 changes: 5 additions & 4 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
Dear Reviewers:

I build this package using [R CMD build .] and checked is with command [R CMD check --as-cran rglobi_0.2.3.tar.gz] on my Mac OS X (v 10.9.5) machine running R 3.1.2 . Also, the checks were executed on travis-ci.org (running Ubuntu) and winbuilder (running windows). I found no errors, but did observe the following note:
I build this package using [R CMD build .] and checked is with command [R CMD check --as-cran rglobi_0.2.4.tar.gz] on my Mac OS X (v 10.9.5) machine running R 3.1.2 . Also, the checks were executed on travis-ci.org (running Ubuntu) and winbuilder (running windows).

Fixes:
* Resolved issue found by Prof Brian Ripley in rglobi v0.2.3 regarding the note: "Package has a VignetteBuilder field but no prebuilt vignette index."

The remaining note for this version is:
* checking CRAN incoming feasibility ... NOTE
Maintainer: ‘Jorrit Poelen <[email protected]>
New submission
Expand All @@ -10,10 +14,7 @@ Components with restrictions and base license permitting such:
File 'LICENSE':
YEAR: 2015
COPYRIGHT HOLDER: Jorrit Poelen
Package has a VignetteBuilder field but no prebuilt vignette index.

Thank you for taking the time to review my submission.

-jorrit

PS Please note that initially, I attempted to submit the package v0.2.2 using the devtools::release command. However, after learning that this is not supported, I reverted to the official submit page I am using now.
13 changes: 11 additions & 2 deletions vignettes/vignette.RMD → inst/vign/rglobi_vignette.Rmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<!--
%\VignetteEngine{knitr::knitr}
%\VignetteIndexEntry{rglobi vignette}
%\VignetteIndexEntry{Introduction to the rglobi package}
-->

```{r echo=FALSE, eval=FALSE}
knitr::opts_chunk$set(
comment = "#>",
warning = FALSE,
message = FALSE,
cache = TRUE
)
```

rglobi vignette - an R interface to the aggregated biotic interaction data of GloBI (http://globalbioticinteractions.org)
======

Expand All @@ -19,7 +28,7 @@ rglobi vignette - an R interface to the aggregated biotic interaction data of Gl

```{r}
install.packages("devtools")
devtools::install_github("rglobi", "ropensci")
devtools::install_github("ropensci/rglobi")
```

```{r}
Expand Down
99 changes: 46 additions & 53 deletions vignettes/vignette.md → inst/vign/rglobi_vignette.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<!--
%\VignetteEngine{knitr::knitr}
%\VignetteIndexEntry{rglobi vignette}
%\VignetteIndexEntry{Introduction to the rglobi package}
-->



rglobi vignette - an R interface to the aggregated biotic interaction data of GloBI (http://globalbioticinteractions.org)
======

Expand All @@ -22,31 +24,22 @@ rglobi vignette - an R interface to the aggregated biotic interaction data of Gl
install.packages("devtools")
```

```
## Installing package into '/Volumes/Data/Users/unencrypted/jorrit/Library/R/3.0/library'
## (as 'lib' is unspecified)
```

```
##
## The downloaded binary packages are in
## /var/folders/v4/0_y78_xj1x7b72l89cwc2kq80000gp/T//RtmptgaLYk/downloaded_packages
## /var/folders/v4/0_y78_xj1x7b72l89cwc2kq80000gp/T//RtmpF6qc1T/downloaded_packages
```

```r
devtools::install_github("rglobi", "ropensci")
```

```
## Warning: Username parameter is deprecated. Please use ropensci/rglobi
devtools::install_github("ropensci/rglobi")
```

```
## Downloading github repo ropensci/rglobi@master
## Installing rglobi
## '/Library/Frameworks/R.framework/Resources/bin/R' --vanilla CMD INSTALL \
## '/private/var/folders/v4/0_y78_xj1x7b72l89cwc2kq80000gp/T/RtmptgaLYk/devtools1fd744d4751b/ropensci-rglobi-7ec6694' \
## --library='/Volumes/Data/Users/unencrypted/jorrit/Library/R/3.0/library' \
## '/private/var/folders/v4/0_y78_xj1x7b72l89cwc2kq80000gp/T/RtmpF6qc1T/devtools15b730380a08/ropensci-rglobi-0b49250' \
## --library='/Library/Frameworks/R.framework/Versions/3.1/Resources/library' \
## --install-tests
##
## Reloading installed rglobi
Expand Down Expand Up @@ -252,41 +245,41 @@ head(aves_crustacea_northern_hemisphere)
```

```
## source_taxon_external_id source_taxon_name
## 1 EOL:18884 Cepphus
## 2 EOL:1049577 Larus marinus
## 3 EOL:1049366 Pluvialis squatarola
## 4 EOL:1049366 Pluvialis squatarola
## 5 EOL:1049366 Pluvialis squatarola
## 6 EOL:1048643 Phalacrocorax penicillatus
## source_taxon_path
## 1 Animalia | Chordata | Aves | Charadriiformes | Alcidae | Cepphus
## 2 Animalia | Chordata | Aves | Charadriiformes | Laridae | Larus | Larus marinus
## 3 Animalia | Chordata | Aves | Charadriiformes | Charadriidae | Pluvialis | Pluvialis squatarola
## 4 Animalia | Chordata | Aves | Charadriiformes | Charadriidae | Pluvialis | Pluvialis squatarola
## 5 Animalia | Chordata | Aves | Charadriiformes | Charadriidae | Pluvialis | Pluvialis squatarola
## 6 Animalia | Chordata | Aves | Suliformes | Phalacrocoracidae | Phalacrocorax | Phalacrocorax penicillatus
## source_taxon_external_id source_taxon_name
## 1 EOL:18884 Cepphus
## 2 EOL:1047918 Anas platyrhynchos
## 3 EOL:1049560 Recurvirostra americana
## 4 EOL:1049376 Arenaria melanocephala
## 5 EOL:1048977 Bucephala albeola
## 6 EOL:1048977 Bucephala albeola
## source_taxon_path
## 1 Animalia | Chordata | Aves | Charadriiformes | Alcidae | Cepphus
## 2 Animalia | Chordata | Aves | Anseriformes | Anatidae | Anas | Anas platyrhynchos
## 3 Animalia | Chordata | Aves | Charadriiformes | Recurvirostridae | Recurvirostra | Recurvirostra americana
## 4 Animalia | Chordata | Aves | Charadriiformes | Scolopacidae | Arenaria | Arenaria melanocephala
## 5 Animalia | Chordata | Aves | Anseriformes | Anatidae | Bucephala | Bucephala albeola
## 6 Animalia | Chordata | Aves | Anseriformes | Anatidae | Bucephala | Bucephala albeola
## source_specimen_life_stage interaction_type target_taxon_external_id
## 1 NA preysOn EOL:2625033
## 2 NA preysOn EOL:35798
## 2 NA preysOn EOL:2620777
## 3 NA interactsWith EOL:2625033
## 4 NA preysOn EOL:2615930
## 5 NA preysOn EOL:2620777
## 6 NA interactsWith EOL:2625033
## 4 NA preysOn EOL:2620777
## 5 NA interactsWith EOL:2625033
## 6 NA preysOn EOL:2620777
## target_taxon_name
## 1 Copepoda
## 2 Balanus
## 2 Gammaridea
## 3 Copepoda
## 4 Oniscidea
## 5 Gammaridea
## 6 Copepoda
## target_taxon_path
## 1 Animalia | Bilateria | Protostomia | Ecdysozoa | Arthropoda | Crustacea | Maxillopoda | Copepoda
## 2 Biota | Animalia | Arthropoda | Crustacea | Maxillopoda | Thecostraca | Cirripedia | Thoracica | Sessilia | Balanomorpha | Balanoidea | Balanidae | Balaninae | Balanus
## 3 Animalia | Bilateria | Protostomia | Ecdysozoa | Arthropoda | Crustacea | Maxillopoda | Copepoda
## 4 Animalia | Bilateria | Protostomia | Ecdysozoa | Arthropoda | Crustacea | Malacostraca | Eumalacostraca | Peracarida | Isopoda | Oniscidea
## 5 Animalia | Bilateria | Protostomia | Ecdysozoa | Arthropoda | Crustacea | Malacostraca | Eumalacostraca | Peracarida | Amphipoda | Gammaridea
## 6 Animalia | Bilateria | Protostomia | Ecdysozoa | Arthropoda | Crustacea | Maxillopoda | Copepoda
## 4 Gammaridea
## 5 Copepoda
## 6 Gammaridea
## target_taxon_path
## 1 Animalia | Bilateria | Protostomia | Ecdysozoa | Arthropoda | Crustacea | Maxillopoda | Copepoda
## 2 Animalia | Bilateria | Protostomia | Ecdysozoa | Arthropoda | Crustacea | Malacostraca | Eumalacostraca | Peracarida | Amphipoda | Gammaridea
## 3 Animalia | Bilateria | Protostomia | Ecdysozoa | Arthropoda | Crustacea | Maxillopoda | Copepoda
## 4 Animalia | Bilateria | Protostomia | Ecdysozoa | Arthropoda | Crustacea | Malacostraca | Eumalacostraca | Peracarida | Amphipoda | Gammaridea
## 5 Animalia | Bilateria | Protostomia | Ecdysozoa | Arthropoda | Crustacea | Maxillopoda | Copepoda
## 6 Animalia | Bilateria | Protostomia | Ecdysozoa | Arthropoda | Crustacea | Malacostraca | Eumalacostraca | Peracarida | Amphipoda | Gammaridea
## target_specimen_life_stage latitude longitude study_title
## 1 NA NA NA NA
## 2 NA NA NA NA
Expand Down Expand Up @@ -361,12 +354,12 @@ head(areas)

```
## Latitude Longitude
## 1 29.35 -92.98
## 2 29.03 -92.29
## 3 28.04 -96.11
## 4 27.62 -95.77
## 5 26.33 -96.03
## 6 30.14 -86.17
## 1 29.34695 -92.98061
## 2 29.03260 -92.28701
## 3 28.03673 -96.11108
## 4 27.62409 -95.77403
## 5 26.33146 -96.03294
## 6 30.25024 -86.13114
```
You can also restrict this search to a certain area:

Expand All @@ -378,10 +371,10 @@ head(areas)

```
## Latitude Longitude
## 1251 18.25 -66.50
## 1255 18.34 -65.83
## 1268 18.07 -63.07
## 1339 13.17 -59.53
## 1251 18.24829 -66.49989
## 1255 18.33884 -65.82572
## 1268 18.06667 -63.06667
## 1339 13.16667 -59.53333
```

#### Custom Queries using Cypher
Expand Down
Loading

0 comments on commit 1e6ff4c

Please sign in to comment.