Skip to content

Commit

Permalink
bug fixed in bioatles()
Browse files Browse the repository at this point in the history
  • Loading branch information
xavi-rp committed Jul 17, 2018
1 parent 7b1e636 commit 271b0d0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 25 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Suggests: knitr, rmarkdown
VignetteBuilder: knitr
License: GPL-3
Encoding: UTF-8
LazyData: true
RoxygenNote: 6.0.1
URL: https://github.com/xavi-rp/PreSPickR
BugReports: https://github.com/xavi-rp/PreSPickR/issues
5 changes: 1 addition & 4 deletions R/bioatles.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#'
#'
#'
#' bioatles()
#
# Created on: Winter-Spring 2018 (under construction)
#
Expand Down Expand Up @@ -66,9 +65,7 @@ bioatles <- function(sp_dir = NULL, sp_list = NULL, out_name = "sp_records"){

#### Downloading Species Name and BIOATLES code ####
noms <- as.data.frame(page %>% html_nodes('option') %>% html_text())
chks <- which(grepl("^Selecciona", noms$`page %>%
html_nodes("option") %>%
html_text()`))
chks <- which(grepl("^Selecciona", noms$`page %>% html_nodes("option") %>% html_text()`))
noms1 <- as.data.frame(noms[(chks[length(chks) - 1] + 1) : (chks[length(chks)] - 1), ])

nds1 <- page %>% html_nodes('select#selectEspecie')
Expand Down
1 change: 0 additions & 1 deletion R/gbif_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#'
#'
#'
#' GetBIF()
#
# Created on: Winter 2018 (under construction)
#
Expand Down
1 change: 1 addition & 0 deletions data/species_bioatles.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Chamaerops humilisAsphodelus aestivus
Expand Down
2 changes: 2 additions & 0 deletions data/species_gbif.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Quercus ilex L.
Fagus sylvatica L.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 271b0d0

Please sign in to comment.