Admin


options("RStata.StataVersion" = 17.0)
options("RStata.StataEcho" = 1)
knitr::opts_knit$set(
  progress = F,
  verbose = F
)
statapath <- ("/Applications/Stata/statabe.app/Contents/MacOS/statabe")
lang <- list("r", "stata", "python", "julia", "bash", "css", "html", "js", "sql", "sas", "fortran", "c++")
knitr::knit_engines$set(lang[])

knitr::opts_chunk$set(
  comment = "#>",
  tidy = FALSE,
  tidy.opts = list(width.cutoff = 60),
  collapse = TRUE,
  prompt = FALSE,
  dev = c("CairoPNG", "pdf"),
  dev.args = list(dev = list(compression = "lzw")),
  highlight = TRUE,
  numberLines = TRUE,
  warning = FALSE,
  verbose = FALSE,
  message = FALSE,
  fig.align = "center",
  class.output = c("hljs", "highlightjs", "figure"),
  dev.args = list(bg = "transparent"),
  engine.path = list(
    (stata <- statapath),
    (python <- "~/Library/r-miniconda-arm64/envs/r-reticulate/bin/python3.8")
  ),
  RETICULATE_PYTHON <- "~/Library/r-miniconda-arm64/envs/r-reticulate/bin/python3.8",
  cache = FALSE,
  purl = FALSE,
  cache.lazy = FALSE,
  fig.retina = 2
)
reticulate::use_python("~/Library/r-miniconda-arm64/envs/r-reticulate/bin/python3.8")
rmarkdown::find_pandoc()
## $version
## [1] '3.6.4'
## 
## $dir
## [1] "/opt/homebrew/bin"
res_names <- c(
  "Term", "Estimate", "Std.Error",
  "Statistic", "df", "P.value"
)
CMS.registerEditorComponent({
  // Internal id of the component
  id: "collapsible-note",
  // Visible label
  label: "Collapsible Note",
  // Fields the user need to fill out when adding an instance of the component
  fields: [
    {
      name: 'summary',
      label: 'Summary',
      widget: 'string'
    },
    {
      name: 'contents',
      label: 'Contents',
      widget: 'markdown'
    }
  ],
  // Regex pattern used to search for instances of this block in the markdown document.
  // Patterns are run in a multiline environment (against the entire markdown document),
  // and so generally should make use of the multiline flag (`m`). If you need to capture
  // newlines in your capturing groups, you can either use something like
  // `([\S\s]*)`, or you can additionally enable the "dot all" flag (`s`),
  // which will cause `(.*)` to match newlines as well.
  //
  // Additionally, it's recommended that you use non-greedy capturing groups (e.g.
  // `(.*?)` vs `(.*)`), especially if matching against newline characters.
  pattern: /^<details>$\s*?<summary>(.*?)<\/summary>\n\n(.*?)\n^<\/details>$/ms,
  // Given a RegExp Match object
  // (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match#return_value),
  // return an object with one property for each field defined in `fields`.
  //
  // This is used to populate the custom widget in the markdown editor in the CMS.
  fromBlock: function(match) {
    return {
      summary: match[1],
      contents: match[2]
    };
  },
  // Given an object with one property for each field defined in `fields`,
  // return the string you wish to be inserted into your markdown.
  //
  // This is used to serialize the data from the custom widget to the
  // markdown document
  toBlock: function(data) {
    return `
<details>
  <summary>${data.summary}</summary>

  ${data.contents}

</details>
`;
  },
  // Preview output for this component. Can either be a string or a React component
  // (component gives better render performance)
  toPreview: function(data) {
    return `
<details>
  <summary>${data.summary}</summary>

  ${data.contents}

</details>
`;
  }
});

<!DOCTYPE html>

A static website

Login with Netlify Identity


Statistical Environments


#> ─ Session info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.4.3 (2025-02-28)
#>  os       macOS Sequoia 15.4
#>  system   aarch64, darwin20
#>  ui       X11
#>  language (EN)
#>  collate  en_US.UTF-8
#>  ctype    en_US.UTF-8
#>  tz       America/New_York
#>  date     2025-04-10
#>  pandoc   3.6.4 @ /opt/homebrew/bin/ (via rmarkdown)
#>  quarto   1.6.42 @ /usr/local/bin/quarto
#> 
#> ─ Packages ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
#>  ! package      * version date (UTC) lib source
#>    base         * 4.4.3   2025-02-28 [?] local
#>    blogdown       1.21.1  2025-03-18 [1] Github (rstudio/blogdown@2eb2637)
#>    bookdown       0.42    2025-01-07 [1] CRAN (R 4.4.1)
#>    bslib          0.9.0   2025-01-30 [1] CRAN (R 4.4.1)
#>    cachem         1.1.0   2024-05-16 [1] CRAN (R 4.4.0)
#>    cli            3.6.4   2025-02-13 [1] CRAN (R 4.4.1)
#>    codetools      0.2-20  2024-03-31 [1] CRAN (R 4.4.0)
#>    colorspace     2.1-1   2024-07-26 [1] CRAN (R 4.4.0)
#>  P compiler       4.4.3   2025-02-28 [2] local
#>    curl           6.2.2   2025-03-24 [1] CRAN (R 4.4.1)
#>  P datasets     * 4.4.3   2025-02-28 [2] local
#>    digest         0.6.37  2024-08-19 [1] CRAN (R 4.4.1)
#>    dplyr          1.1.4   2023-11-17 [1] CRAN (R 4.4.0)
#>    evaluate       1.0.3   2025-01-10 [1] CRAN (R 4.4.1)
#>    fastmap        1.2.0   2024-05-15 [1] CRAN (R 4.4.0)
#>    generics       0.1.3   2022-07-05 [1] CRAN (R 4.4.0)
#>    ggplot2        3.5.2   2025-04-09 [1] CRAN (R 4.4.1)
#>    glue           1.8.0   2024-09-30 [1] CRAN (R 4.4.1)
#>  P graphics     * 4.4.3   2025-02-28 [2] local
#>  P grDevices    * 4.4.3   2025-02-28 [2] local
#>  P grid           4.4.3   2025-02-28 [2] local
#>    gridExtra      2.3     2017-09-09 [1] CRAN (R 4.4.0)
#>    gtable         0.3.6   2024-10-25 [1] CRAN (R 4.4.1)
#>    here           1.0.1   2020-12-13 [1] CRAN (R 4.4.0)
#>    htmltools      0.5.8.1 2024-04-04 [1] CRAN (R 4.4.0)
#>    inline         0.3.21  2025-01-09 [1] CRAN (R 4.4.1)
#>    jquerylib      0.1.4   2021-04-26 [1] CRAN (R 4.4.0)
#>    jsonlite       2.0.0   2025-03-27 [1] CRAN (R 4.4.1)
#>    knitr          1.50    2025-03-16 [1] CRAN (R 4.4.1)
#>    lattice        0.22-7  2025-04-02 [1] CRAN (R 4.4.1)
#>    lifecycle      1.0.4   2023-11-07 [1] CRAN (R 4.4.0)
#>    loo            2.8.0   2024-07-03 [1] CRAN (R 4.4.0)
#>    magrittr       2.0.3   2022-03-30 [1] CRAN (R 4.4.0)
#>    Matrix         1.7-3   2025-03-11 [1] CRAN (R 4.4.1)
#>    matrixStats    1.5.0   2025-01-07 [1] CRAN (R 4.4.1)
#>  P methods      * 4.4.3   2025-02-28 [2] local
#>    munsell        0.5.1   2024-04-01 [1] CRAN (R 4.4.0)
#>  P parallel       4.4.3   2025-02-28 [2] local
#>    pillar         1.10.2  2025-04-05 [1] CRAN (R 4.4.1)
#>    pkgbuild       1.4.7   2025-03-24 [1] CRAN (R 4.4.1)
#>    pkgconfig      2.0.3   2019-09-22 [1] CRAN (R 4.4.0)
#>    png            0.1-8   2022-11-29 [1] CRAN (R 4.4.0)
#>    QuickJSR       1.7.0   2025-03-31 [1] CRAN (R 4.4.1)
#>    R6             2.6.1   2025-02-15 [1] CRAN (R 4.4.1)
#>    Rcpp           1.0.14  2025-01-12 [1] CRAN (R 4.4.1)
#>    RcppParallel   5.1.10  2025-01-24 [1] CRAN (R 4.4.1)
#>    reticulate     1.42.0  2025-03-25 [1] CRAN (R 4.4.1)
#>    rlang          1.1.5   2025-01-17 [1] CRAN (R 4.4.1)
#>    rmarkdown      2.29    2024-11-04 [1] CRAN (R 4.4.1)
#>    rprojroot      2.0.4   2023-11-05 [1] CRAN (R 4.4.0)
#>    rstan          2.32.7  2025-03-10 [1] CRAN (R 4.4.1)
#>    rstudioapi     0.17.1  2024-10-22 [1] CRAN (R 4.4.1)
#>    sass           0.4.9   2024-03-15 [1] CRAN (R 4.4.0)
#>    scales         1.3.0   2023-11-28 [1] CRAN (R 4.4.0)
#>    sessioninfo    1.2.3   2025-02-05 [1] CRAN (R 4.4.1)
#>    StanHeaders    2.32.10 2024-07-15 [1] CRAN (R 4.4.0)
#>  P stats        * 4.4.3   2025-02-28 [2] local
#>  P stats4         4.4.3   2025-02-28 [2] local
#>    tibble         3.2.1   2023-03-20 [1] CRAN (R 4.4.0)
#>    tidyselect     1.2.1   2024-03-11 [1] CRAN (R 4.4.0)
#>  P tools          4.4.3   2025-02-28 [2] local
#>  P utils        * 4.4.3   2025-02-28 [2] local
#>    V8             6.0.3   2025-03-26 [1] CRAN (R 4.4.1)
#>    vctrs          0.6.5   2023-12-01 [1] CRAN (R 4.4.0)
#>    withr          3.0.2   2024-10-28 [1] CRAN (R 4.4.1)
#>    xfun           0.52    2025-04-02 [1] CRAN (R 4.4.1)
#>    yaml           2.3.10  2024-07-26 [1] CRAN (R 4.4.0)
#> 
#>  [1] /Users/zad/Library/R/arm64/4.4/library
#>  [2] /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library
#> 
#>  * ── Packages attached to the search path.
#>  P ── Loaded and on-disk path mismatch.
#> 
#> ─ External software ────────────────────────────────────────────────────────────────────────────────────────────────────────────
#>  setting        value
#>  cairo          1.17.6
#>  cairoFT
#>  pango          1.50.14
#>  png            1.6.44
#>  jpeg           9.5
#>  tiff           LIBTIFF, Version 4.5.0
#>  tcl            8.6.13
#>  curl           8.7.1
#>  zlib           1.2.12
#>  bzlib          1.0.8, 13-Jul-2019
#>  xz             5.6.3
#>  deflate        1.23
#>  PCRE           10.44 2024-06-07
#>  ICU            76.1
#>  TRE            TRE 0.8.0 R_fixes (BSD)
#>  iconv          Apple or GNU libiconv 1.11
#>  readline       5.2
#>  BLAS           /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRblas.0.dylib
#>  lapack         /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib
#>  lapack_version 3.12.0
#> 
#> ─ Python configuration ─────────────────────────────────────────────────────────────────────────────────────────────────────────
#>  Python is not available
#> 
#> ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
#> $RNGkind
#> [1] "Mersenne-Twister" "Inversion"        "Rejection"

See also:

Article Progress Tracker
XML Sitemap Generator