Fileio
⏳ Ephemeral File, Text or R Data Sharing with 'file.io'
Install / Use
/learn @hrbrmstr/FileioREADME
fileio
Ephemeral File, Text or R Data Sharing with ‘file.io’
Description
The ‘file.io’ <file.io> service enables ephemeral, convenient and anonymous file sharing. Methods are provided to upload existing files, R data objects or text messages to this service.
What’s Inside The Tin
The following functions are implemented:
fi_post_file: Post a file to file.iofi_post_rdata: Post an R object to file.iofi_post_text: Post text to file.io
Installation
devtools::install_github("hrbrmstr/fileio")
Usage
library(fileio)
# current verison
packageVersion("fileio")
## [1] '0.2.0'
Post a file
(x <- fi_post_file(system.file("extdat", "tst.txt", package = "fileio")))
## success key link expiry
## 1 TRUE ouNU6O https://file.io/ouNU6O 14 days
readLines(con <- url(x$link), warn = FALSE)
## [1] "Hi Noam!"
close(con)
Post text
(x <- fi_post_text("Hi Noam!", "2d"))
## success key link expiry
## 1 TRUE lWCpV2 https://file.io/lWCpV2 14 days
readLines(con <- url(x$link), warn = FALSE)
## [1] "Hi Noam!"
close(con)
Post R data
fi_post_rdata(
list(
mtcars = mtcars,
iris = iris,
message = "Hi Noam!"
)
) -> x
str(
readRDS(con <- url(x$link)),
1
)
## List of 3
## $ mtcars :'data.frame': 32 obs. of 11 variables:
## $ iris :'data.frame': 150 obs. of 5 variables:
## $ message: chr "Hi Noam!"
close(con)
Code of Conduct
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
