readme.md

IPFS

Connect to the Inter Planetary File System

Build Status AppVeyor Build Status Coverage Status CRAN_Status_Badge CRAN RStudio mirror downloads Github Stars

Installation

Install from Github:

devtools::install_github("jeroenooms/ipfs")

The installer should automatically download the ipfs program.

Getting Started

First start the ipfs server daemon

# Start the server in the background
ipfs_daemon()

# Check server status:
ipfs_info()

You are now connected to the inter-planetary file system! Download some files:

ipfs_get('QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG')
ipfs_cat('QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme')
ipfs_download('QmR7GSQM93Cx5eAg6a6yRzNde1FQv7uL6X1o4k7zrJa3LX/ipfs.draft3.pdf')
utils::browseURL('ipfs.draft3.pdf')

Or publish a file of your own!

# Publish a file!
writeLines("Hi there!", tmp <- tempfile())
out <- ipfs_add(tmp)
ipfs_browse(out$hash)

See the ?ipfs and ?ipns help pages for more information.



jeroenooms/ipfs documentation built on May 19, 2019, 6:13 a.m.