GithubHelp home page GithubHelp logo

tombisho / synthetic_bookdown Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 3.17 MB

Bookdown for the dsSynthetic project

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

License: GNU General Public License v3.0

TeX 99.71% CSS 0.29%

synthetic_bookdown's Introduction

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:

install.packages('devtools')
library(devtools)
devtools::install_github('tombisho/dsSyntheticClient')
devtools::install_github('datashield/[email protected]')
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:

library(bookdown)

bookdown::serve_book()

Contact

Tom R.P. Bishop and Soumya Banerjee

[email protected]

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::pdf_book: includes: in_header: preamble.tex latex_engine: xelatex citation_package: natbib keep_tex: yes bookdown::epub_book: default

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

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

synthetic_bookdown's People

Contributors

neelsoumya avatar tombisho avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

neelsoumya

synthetic_bookdown's Issues

some issues

  • chapter 3 large data set, not just harmonisation, analysis

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.