Search code examples
rcurlrcurlmixpanel

Curl Not Found Error in RMixpanel


I'm trying to Download Data From Mixpanel by writing a JQL Query. I have used this function

Mixpanel_Data <- mixpanelJQLQuery(MixP, jqlString = JQL_Query )

I'm getting the following error

Error in system(curlCall, intern = TRUE, ignore.stderr = TRUE) : 'curl' not found

Please help as I can't find anything regarding this online.


Solution

  • The function mixpanelJQLQuery() makes a system call curl to download the data. In your case the system is not finding curl. If you're on a linux like OS you can install it by running: sudo apt-get install curl in the shell prompt. Otherwise you can modify mixpanelJQLQuery() to use wget by replacing curl with wget in the system function.