Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Repo For decisioncurveanalysis.org

NotificationsYou must be signed in to change notification settings

MSKCC-Epi-Bio/decisioncurveanalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python (PyPI)R (CRAN)
PyPI DownloadsCRAN downloads

This repository contains the source code and materials used to build the Decision Curve Analysis website (decisioncurveanalysis.org).

Essential Commands

In R Console

# 1. Clean the site (remove generated files, especially cache)rmarkdown::clean_site(preview=FALSE)# 2. Render main site (this builds index.html and other core pages)rmarkdown::render_site()# Optional: Render language-specific versions of the tutorial# (Run this *after* render_site)languages<- c("r","stata","sas","python")for (langinlanguages) {rmarkdown::render("dca-tutorial.Rmd",output_file= paste0("dca-tutorial-",lang,".html"),params=list(language=lang))}

Using build_site.sh (Shell Script)

For a more streamlined development experience, you can use the includedbuild_site.sh script:

# Make the script executable (only needed once)chmod +x build_site.sh# Build and preview the entire site./build_site.sh

This script:

  • Renders the tutorial for all languages (R, Stata, SAS, Python)
  • Builds all site pages with proper navigation
  • Keeps all output in the_site directory (keeps repo root clean)
  • Automatically cleans up temporary files
  • Opens your browser to preview the site when done

It's the recommended way to preview the site locally during development as it closely matches how the site is built during deployment.

Example Workflow

Here's a common workflow for contributing to this site:

  1. Make your changes (edit content, add examples, fix bugs)
  2. Run./build_site.sh to preview the changes
  3. Check the site in your browser (automatically opened by the script)
  4. Make further adjustments if needed
  5. Commit your changes to your branch
  6. Create a pull request

The GitHub Actions workflow will automatically build and deploy the site when changes are merged to the main branch.

About

Repo For decisioncurveanalysis.org

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp