Giter Club home page Giter Club logo

ipfs's Introduction

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.

ipfs's People

Contributors

jeroen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ipfs's Issues

`HTTP 405` error

After running ipfs deamon, I got HTTP 405 error when calling ipfs_cat() or ipfs_downloard() functions.

> library(ipfs)
ipfs deamon is running!
> ipfs_cat('QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme')
Error: HTTP 405 - Method Not Allowed

Session info is:

> sessionInfo()
R version 4.3.1 (2023-06-16)
Platform: x86_64-apple-darwin22.5.0 (64-bit)
Running under: macOS Ventura 13.5

Matrix products: default
BLAS:   /usr/local/Cellar/openblas/0.3.23/lib/libopenblasp-r0.3.23.dylib
LAPACK: /usr/local/Cellar/r/4.3.1/lib/R/lib/libRlapack.dylib;  LAPACK version 3.11.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Asia/Shanghai
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] ipfs_0.1

loaded via a namespace (and not attached):
[1] compiler_4.3.1 curl_5.0.2

ipfs_start doesn't exist

if already started, gives message, but that fxn doesn't exist

ipfs_daemon()
#> Error: IPFS already started. Run ipfs_start(restart = TRUE) to force restart

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.