75
75
# ' curlopts = list(verbose = TRUE))
76
76
# ' }
77
77
78
- name_lookup <- function (query = NULL , rank = NULL , higherTaxonKey = NULL , status = NULL ,
79
- isExtinct = NULL , habitat = NULL , nameType = NULL , datasetKey = NULL ,
80
- origin = NULL , nomenclaturalStatus = NULL , limit = 100 , start = 0 , facet = NULL ,
81
- facetMincount = NULL , facetMultiselect = NULL , type = NULL , hl = NULL , issue = NULL ,
82
- verbose = FALSE , return = NULL , curlopts = list ()) {
78
+ name_lookup <- function (query = NULL ,
79
+ rank = NULL ,
80
+ higherTaxonKey = NULL ,
81
+ status = NULL ,
82
+ isExtinct = NULL ,
83
+ habitat = NULL ,
84
+ nameType = NULL ,
85
+ datasetKey = NULL ,
86
+ origin = NULL ,
87
+ nomenclaturalStatus = NULL ,
88
+ limit = 100 ,
89
+ start = 0 ,
90
+ facet = NULL ,
91
+ facetMincount = NULL ,
92
+ facetMultiselect = NULL ,
93
+ type = NULL ,
94
+ hl = NULL ,
95
+ issue = NULL ,
96
+ constituentKey = NULL ,
97
+ verbose = FALSE ,
98
+ return = NULL ,
99
+ curlopts = list ()) {
83
100
84
101
pchk(return , " name_lookup" )
85
102
if (! is.null(facetMincount ) && inherits(facetMincount , " numeric" ))
@@ -99,15 +116,28 @@ name_lookup <- function(query=NULL, rank=NULL, higherTaxonKey=NULL, status=NULL,
99
116
datasetKey <- as_many_args(datasetKey )
100
117
origin <- as_many_args(origin )
101
118
issue <- as_many_args(issue )
119
+ constituentKey <- as_many_args(constituentKey )
102
120
103
121
url <- paste0(gbif_base(), ' /species/search' )
104
- args <- rgbif_compact(list (q = query , isExtinct = as_log(isExtinct ),
105
- nomenclaturalStatus = nomenclaturalStatus , limit = limit , offset = start ,
106
- facetMincount = facetMincount ,
107
- facetMultiselect = as_log(facetMultiselect ), hl = as_log(hl ),
108
- type = type ))
109
- args <- c(args , facetbyname , rank , higherTaxonKey , status ,
110
- habitat , nameType , datasetKey , origin , issue )
122
+ args <- rgbif_compact(list (q = query ,
123
+ isExtinct = as_log(isExtinct ),
124
+ nomenclaturalStatus = nomenclaturalStatus ,
125
+ limit = limit , offset = start ,
126
+ facetMincount = facetMincount ,
127
+ facetMultiselect = as_log(facetMultiselect ),
128
+ hl = as_log(hl ),
129
+ type = type ))
130
+ args <- c(args ,
131
+ facetbyname ,
132
+ rank ,
133
+ higherTaxonKey ,
134
+ status ,
135
+ habitat ,
136
+ nameType ,
137
+ datasetKey ,
138
+ origin ,
139
+ issue ,
140
+ constituentKey )
111
141
112
142
# paging implementation
113
143
if (limit > 1000 ) {
0 commit comments