I have been using KoboconnectR package in R to export and import data from my Kobotoolbox account to my R workspace in R-Studio.
In the past it worked really well and I was able to pull data without any problems but for the past 2 months, I have been having timeout issues. I have searched and tried all suggested solutions but have not had any success. Here is the code below incase anyone has a solution:
library(KoboconnectR)
# get api (shows list of surveys created in the kobo account)
api <- kobotools_api(
url = "kf.kobotoolbox.org",
simplified = TRUE,
uname = "username",
pwd = "password",
encoding = "UTF-8"
)
# csv data download (imports data into R working enviroment by creating an export in Kobo)
data.import <- kobo_df_download(
url = "kf.kobotoolbox.org",
uname = "username",
pwd = "password",
assetid = "assetid",
all = "true",
lang = "_default",
hierarchy = "false",
include_grp = "true",
grp_sep = "/",
fsep = ";",
multi_sel = "both",
media_url = "true",
fields = NULL,
sub_ids = NULL,
sleep = 2
)
Downloading: 7.9 kB Export instruction sent successfully. Waiting for result.
Downloading: 7.9 kB Execution in Progress...Timeout[1] "export creation was not successful"
Thank you.