Analyse psilocybin research
with R in your browser.
Use webR to run custom R code against the public research dataset, with tables and plots produced interactively on your device. Analysis and downloads are freely accessible. An optional account lets you save analyses online and reopen them across devices.
No account or local R installation required. The runtime downloads only when you run an analysis.
Custom R analyses
Start with publication trends, journals, study types, topics or metadata completeness. Edit the code freely, subset the records and use compatible R packages.
Save to your account
Keep your R code, console output, results table and plots together. Reopen saved results on another device; saved code never runs automatically.
Export and reproduce
Download a professionally typeset LaTeX PDF report, complete LaTeX source ZIP, R code, CSV tables and PNG plots without signing in. The LaTeX archive includes the exact data snapshot, code, results, fonts, compilation instructions and SHA-256 checksums. Saved analyses also provide a reproducibility bundle.
Work with the live research index—and retain the data you used
The workspace loads a snapshot of visible public psilocybin and psilocin bibliographic records. Each snapshot has a SHA-256 identity. A saved analysis keeps that snapshot, even as the live database changes. Choosing the latest dataset is an explicit action.
The data frame records includes fields such as publication year, journal, DOI, source, publication status, study-type labels and topic tags. Assign a data frame to results to export a table.
# Inspect the metadata before defining your analysis.
str(records)
results <- as.data.frame(table(records$publication_year))
print(results)Indexed records are not independent studies or participants. Registry entries, preprints and journal articles may describe the same study, and derived labels require source checking. The workspace supports bibliometric exploration; it does not supply patient-level data or establish treatment effects.
Dataset, rights and citation · Public API · R and webR credits
R package and Shinylive explorer
Use the psilocybinresearch R package for versioned public snapshots, SHA-256 verification, annual record counts and snapshot citations. Download version 0.1.0 (not a CRAN release).
Install the R package
install.packages(c("jsonlite", "digest"), repos = "https://cloud.r-project.org")
install.packages(
"https://github.com/psilocybin-research/psilocybinresearch/releases/download/v0.1.0/psilocybinresearch_0.1.0.tar.gz",
repos = NULL, type = "source"
)
library(psilocybinresearch)
m <- research_manifest()
download_snapshot("snapshot-001", m)
x <- read_snapshot("snapshot-001")
annual_counts(x)
snapshot_citation(x)Requires R 4.1 or later. Use a new directory name for each snapshot; completed downloads can be reopened and verified offline. Preserve the snapshot manifest with your analysis.
Prefer a guided interface? Open the Shinylive research explorer to filter a dated snapshot, export matching records and build an optional authors-and-citations network with visNetwork. Citation links are retrieved from the live public API on request, with a retrieval timestamp and coverage notes. It runs R in the browser, without a Shiny server. The custom workspace remains available separately.
Work offline
Optionally download the R runtime and a verified public dataset to run analyses without a connection. R, plots, CSV, R code and LaTeX source downloads work offline. Include the optional local LaTeX compiler to generate PDF reports offline too. Account sign-in, online saving and new package downloads require a connection. Prepare offline R.
Private workspace, browser-side computation
The analysis workspace and local exports are open to everyone. Sign-in is required only to save analyses online and reopen them across devices. R runs on your device, not as a public server-side code-execution service. Saved code and results are private to your account and encrypted at rest. They are not exposed through the public dataset, API or MCP server.
A modern browser with WebAssembly and Web Workers is required; mobile devices may have tighter memory limits. Base R is included, and additional packages must be compatible with webR. See the workspace for storage and execution limits.