Skip to content

Commit

Permalink
nimble, words of introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
balglave committed Aug 19, 2024
1 parent bce4d25 commit 9ada220
Show file tree
Hide file tree
Showing 23 changed files with 6,018 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ po/*~

# RStudio Connect folder
rsconnect/

/.quarto/
22 changes: 9 additions & 13 deletions 01_nimble.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,19 @@ title: "Introduction to `nimble`"
format: html
---

## Quarto
# Short presentation of `nimble`

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.
First, a very good reference: https://r-nimble.org/html_manual/cha-welcome-nimble.html

## Running Code
The `nimble` package is:

When you click the **Render** button a document will be generated that includes both content and the output of embedded code. You can embed code like this:
- A system for writing statistical models flexibly (based on bugs).
- A library of inference algorithms (MCMC, Laplace approximation).
- A compiler that generates and compiles C++ for your models and algorithms without knowing it is C++.

```{r}
1 + 1
```
There is a `nimble` language with the basics for building statistical models (e.g. the key probability distributions, some key transformation functions).

You can add options to executable code like this
But, this remains limited and to have full flexibility, ones need to build its own function -> can be very challenging

```{r}
#| echo: false
2 * 2
```
# A simple example with functions being available in `nimble`

The `echo: false` option disables the printing of code (only output is displayed).
Loading

0 comments on commit 9ada220

Please sign in to comment.