Anyone with a solution to the problem of pulling data with KoboconnectR

@Kal_Lam Thank you for tagging @dickoa , I was able to follow one of his posts about using the robotoolbox package to pull data from Kobotoobox Introducing the R package robotoolbox - #58 by dickoa. I have been able to successfully pull data into R, and its working as a perfect alternative to the KoboconnectR package.

This is the final code I am using, just incase anyone might be interested to follow suit:

library(pacman)

p_load(robotoolbox, koboloadeR, dplyr)

# Get your authentication token
token <- kobo_token(
  username = "my_user_name",
  password = "my_password",
  url = "https://kc.kobotoolbox.org"
)

# Check kobo settings
kobo_setup(url = "https://kf.kobotoolbox.org", token = token)
kobo_settings()


# Get a list of all your kobo projects
l <- kobo_asset_list() 
head(l) 


# Select which project you want to pull data from
uid <- l$uid[1]
asset <- kobo_asset(uid)
asset

# Pull data
dsv_data <- kobo_data(asset)
glimpse(data)

Thanks once again. :blush:

2 Likes