opened
jofazepa
username_0
```
Error using multiple ORCID ID's
issue
created
sckott
username_1
thanks for the issue @username_0 

can you share your `sessionInfo()` please
comment
created
jofazepa
username_0
R version 3.4.3 (2017-11-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=Portuguese_Portugal.1252  LC_CTYPE=Portuguese_Portugal.1252    LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C                        
[5] LC_TIME=Portuguese_Portugal.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rorcid_0.4.0

loaded via a namespace (and not attached):
[1] httr_1.3.1     compiler_3.4.3 R6_2.2.2       tools_3.4.3    curl_3.1       yaml_2.1.17    crul_0.5.2     jsonlite_1.5
comment
created
sckott
username_1
The new version of `rorcid` has some changes, one of which is `orcid_id` only accepts one ORCID.

you're looking for just getting the same ORCID id again from the result?

```r
ids <- c("0000-0003-1620-1408", "0000-0002-9341-7985")
lapply(ids, function(x) names(orcid_id(x)))
```
comment
closed
jofazepa
username_0
issue
created
jofazepa
username_0
I used to get bulk publications/work for multiple ORCID Ids, using this:
`x <- orcid_id(orcid = ids, profile = "works")`
When I got the error I just run through the rORCID tutorial and found the code I pasted here. Also tried other ways, like
`x <- lapply(orcid_id(orcid = ids), "[[", "orcid-identifier")`
And the same error happens. I was looking for a way to do the same thing, because that is why I use rORCID for, getting info from a group of researchers, but I see that the new version or rOrcid is unable to do it.
comment
reopened
jofazepa
username_0
```
Error using multiple ORCID ID's
issue
created
sckott
username_1
it is able to do that if you slightly change your code. 

this in the new verison

```r
ids <- c("0000-0003-1620-1408", "0000-0002-9341-7985")
lapply(ids, function(x) names(orcid_id(x)))
```

does exactly what this did in the old version

```r
ids <- c("0000-0003-1620-1408", "0000-0002-9341-7985")
lapply(orcid_id(orcid = ids), "[[", "orcid-identifier")
```
comment
created
jofazepa
username_0
This means that if I change "names" for "works" I get the works from them, like this:
`x <- lapply(ids, function(x) works(orcid_id(x)))`
Therefore just needing to change the list to a data.frame to be able to have an organized publications list for a set of orcid.ids.
comment
created
sckott
username_1
right, the eg. I gave with `names()` was to just get exactly what your example code was doing. right, so just lapply or similar over your ORCID's
comment
created
jofazepa
username_0
Thanks username_1.
comment
closed
jofazepa
username_0
issue