synthetic_bookdown

Bookdown for the dsSynthetic project

https://github.com/tombisho/synthetic_bookdown

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.8%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Bookdown for the dsSynthetic project

Basic Info
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • Open Issues: 5
  • Releases: 0
Created over 4 years ago · Last pushed almost 4 years ago
Metadata Files
Readme License Citation

README.md

Introduction

License

Documentation and bookdown for dsSynthetic package to generate synthetic data in DataSHIELD.

https://tombisho.github.io/synthetic_bookdown/

dsSynthetic has a server-side package

https://github.com/tombisho/dsSynthetic

and a client side package

https://github.com/tombisho/dsSyntheticClient

Bookdown

The complete bookdown, tutorial, vignette with executable code and synthetic data is available here:

https://tombisho.github.io/synthetic_bookdown/

Quick start

Please install R and R Studio

https://www.rstudio.com/products/rstudio/download/preview/

Install the following packages:

```r

install.packages('devtools') library(devtools) devtools::installgithub('tombisho/dsSyntheticClient') devtools::installgithub('datashield/dsBaseClient@6.1.1') install.packages('rmarkdown') install.packages('knitr') install.packages('tinytex') install.packages('metafor') install.packages('DSOpal') install.packages('DSI') install.packages('opalr')

```

Follow the bookdown below for a complete tutorial:

https://tombisho.github.io/synthetic_bookdown/

Usage

See the bookdown below for a complete tutorial:

https://tombisho.github.io/synthetic_bookdown/

A minimal example of a book based on R Markdown and bookdown (https://github.com/rstudio/bookdown).

The bookdown can be compiled by typing the following commands:

```r

library(bookdown)

bookdown::serve_book()

```

Contact

Tom R.P. Bishop and Soumya Banerjee

sb2333@cam.ac.uk

Recipe for creating your own bookdown

Bookdown recipe:

  1.   In RStudio, install the bookdown package
    
  2.   Start a new project, but choose the project to be a book.
    
  3.   In Github create an empty project  (no README.md) with the same name as your book
    
  4.   In RStudio go to Tools -> Project options -> Version control -> Git (it will ask you to reload the project)
    
  5. On Git command line, add the remote and push: git remote add origin https://github.com/USERNAME/PROJECT.git git push -u origin master

  6.   In the file _bookdown.yml, and the line output_dir: "docs"
    
  7.   In the file _output.yml, delete the parts that refer to generating a pdf (I couldn’t get this to work):
    

    bookdown::pdfbook: includes: inheader: preamble.tex latexengine: xelatex citationpackage: natbib keeptex: yes bookdown::epubbook: default

  8.   Start to write your book!
    
  9.   Check in local changes
    
  10. In Github go to Settings -> Pages and set the source to the main branch and folder to docs

  11. Push your local changes to Github, hopefully it will build your site

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Banerjee"
  given-names: "Soumya"
  orcid: "https://orcid.org/0000-0001-7748-9885"
- family-names: "Bishop"
  given-names: "Tom"
  orcid: "https://orcid.org/0000-0000-0000-0000"
title: "synthetic_bookdown"
version: 1.0.0
doi: 10.5281/zenodo.1234
date-released: 2021-12-21
url: "https://github.com/neelsoumya/synthetic_bookdown"

GitHub Events

Total
Last Year

Dependencies

DESCRIPTION cran
  • DSI * imports
  • DSOpal * imports
  • bookdown * imports
  • dsBaseClient * imports
  • knitr * imports
  • opalr * imports
  • rmarkdown * imports
  • tinytex * imports