# Create new data package
pkgdir <- tempfile()
datapkg_write(mtcars, path = pkgdir)
datapkg_write(iris, path = pkgdir)
# Read it back
mypkg <- datapkg_read(pkgdir)
print(mypkg$data$mtcars)
# Clone package with git:
cities <- datapkg_read("git://github.com/datasets/world-cities")
# Read over http
euribor <- datapkg_read("https://raw.githubusercontent.com/datasets/euribor/master")
Run the code above in your browser using DataLab