ropensci / fingertipsR

R package to interact with Public Health England’s Fingertips data tool
https://docs.ropensci.org/fingertipsR
92 stars 18 forks source link

nearest_neighbours function 'Error: The API is currently unavailable' #116

Open scott-STC opened 11 months ago

scott-STC commented 11 months ago

Hi

We are using this package in RStudio behind a proxy. We have configured RStudio to use the proxy and if we pass the argument proxy_settings = 'none' through to the functions we're calling it works except for the nearest_neighbours where we keep getting 'Error: The API is currently unavailable'.

I'm not sure if the nearest_neighbours function is not passing the correct argument value to the fingertips_ensure_api_available function to check if the API is available as we normally get the 'Error: The API is currently unavailable' if proxy_settings = 'default'.

Any advice or help would be appreciated.

phillipsj01 commented 11 months ago

Hi

I am also getting the error !? Error: The API is currently unavailable

I ran the following lines, keeping it very simple to receive the error. library(fingertipsR) phofR <- fingertips_data(ProfileID = 19)

I have also tried proxy_settings = 'none' with no further success. I also made sure I was running the latest available version of the fingertipsR package 1.0.10.9002

Not sure what the next step should be. Am I missing something? Following for further info.