0

I am having trouble pulling down data sets from the web (https://api.fda.gov) FDA API. The connection is fine and it appears generate more than 4000 JSON records. The problem is, when it is done, R gives me the below error and I am no longer able to do anything in RStudio - I basically have to force quit. I've seen references to similar issues, but haven't been able to find a solution.

Error: Unable to establish connection with R session

1
  • try storing the large dataset in a new environment instead of dataframe or list. Oct 6, 2016 at 17:39

3 Answers 3

2

I assume that you are using RStudio? There is a problem with RStudio and pulling large data sets. See here: Wang's Tech Blog and here: RStudio Support.

I suggest just using R in the terminal when you run scripts that pull large data-sets.

1

I was able to solve all problems by deactivating/deinstalling the antivirus software (Avast)

0

I also ran into this error. Uninstalling avast did not work for me. I uninstalled r and r studio and reinstalled r and r studio and this solved my problem.

Not the answer you're looking for? Browse other questions tagged or ask your own question.