You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some code lists have a space in their name, e.g. Platform Class. It is currently not possible to query these with getCodeList(). The solution is to utils::URLencode() the input parameter within the function, before passing it to the API, so that:
Platform Class becomes Platform%20Class:
library(icesVocab)
code_list<-"Platform Class"codes<- getCodeList(code_list) # Error#> Warning in readVocab(url): HTTP error 400.code_list_encoded<-utils::URLencode(code_list)
code_list_encoded#> [1] "Platform%20Class"codes<- getCodeList(code_list_encoded) # Works fine
Some code lists have a space in their name, e.g.
Platform Class
. It is currently not possible to query these withgetCodeList()
. The solution is toutils::URLencode()
the input parameter within the function, before passing it to the API, so that:Platform Class
becomesPlatform%20Class
:Created on 2022-03-18 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: