Hello,
I am trying to make a Codebook with R Notebook. I followed the instructions from You Tube Psych Prof channel (New Create Codebook Video - YouTube). Everything else works fine, but the preview notebook looks just like a basic R Markdown, no tabset, no darkly and so on. What could be the reason?
Example code:
title: "Test Notebook"
output:
html_notebook:
theme: darkly
toc: yes
toc_float: yes
Load Packages {. tabset}
Data Table
# Check if packages is already installed and install if not. Packages needed haven, summarytools, tidyverse, data table, rio and ggplot.
if (!require (data.table)){
install.packages("data.table", depandencies = TRUE)
library (data.table)
}
haven
if (!require (haven)){
install.packages("haven", depandencies = TRUE)
library (haven)
}
devtools
if (!require (devtools)){
install.packages("devtools", depandencies = TRUE)
library (devtools)
}
if (!require (remotes)){
install.packages("remotes", depandencies = TRUE)
library (remotes)
}
session_info()
```─ Session info ───────────────────────────────────────────────────────────────────────────────────
setting value
version R version 4.1.1 (2021-08-10)
os macOS Monterey 12.3
system x86_64, darwin17.0
ui RStudio
language (EN)
collate en_US.UTF-8
ctype en_US.UTF-8
tz Europe/Helsinki
date 2022-10-11
rstudio 1.4.1717 Juliet Rose (desktop)
Best Wishes, Anitra