Skip to content

Commit 4bfdef4

Browse files
committed
quarto website
1 parent 2071c48 commit 4bfdef4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+9728
-1
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/*.Rcheck/
1616

1717
# Output from site build
18-
# /docs/* # This is the RMarkdown website. It is set up to
18+
# /docs/* # This is the RMarkdown website. It is set up to
1919
# continuous build at netlify.com. This docs folder is
2020
# continously built when the docs folder is pushed (uploaded)
2121
# to GitHub
@@ -43,3 +43,5 @@ vignettes/*.pdf
4343
*.utf8.md
4444
*.knit.md
4545
.Rproj.user
46+
47+
/.quarto/

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# README
2+
3+
<!-- badges: start -->
4+
5+
<!-- badges: end -->
6+
7+
- To build a quarto website
8+
9+
- Terminal: `quarto render`
10+
11+
- To publish a quarto website
12+
13+
- Terminal: `quarto publish`
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"hash": "bd1d3b5fae3addfe1c1ee600b0151da4",
3+
"result": {
4+
"engine": "knitr",
5+
"markdown": "---\ntitle: \"Git, GitHub & RStudio\"\ndescription: RStudio users can leverage git Version control to enhance reproducibility.\n---\n\n\nThe [`usethis`](https://usethis.r-lib.org/) package and the RStudio IDE will help you orchestrate your version control repositories as RStudio projects.\n\n<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/r5_v5f6128M\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen>\n\n</iframe>\n\n<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/videoseries?si=hWO26jfu4-ctXAE1&amp;list=PLXsA_OlR0o0PcuagC_TUl32RULZkLHI1D\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen>\n\n</iframe>\n\n<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/VjDM-XsoHUQ\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen>\n\n</iframe>\n\n### Setup\n\nTo get started, make a free GitHub.com account. Make sure you have the latest versions of R, RStudio, and usethis. Then, setup your RStudio configuration using two key documents: [Setup](https://usethis.r-lib.org/articles/articles/usethis-setup.html), and [Managing Git(Hub) Credentials](https://usethis.r-lib.org/articles/articles/git-credentials.html).\n\n### Tips\n\n#### Clone or fork from GitHub\n\n\n::: {.cell}\n\n```{.r .cell-code}\nusethis::create_from_github(\"https://github.com/data-and-visualization/git-tutorial\")\n```\n:::\n\n\n#### Create the GitHub repo from local\n\n\n::: {.cell}\n\n```{.r .cell-code}\nlibrary(usethis)\nuse_git() # initialize a git repo\nuse_git_ignore()\nuse_readme.Rmd()\nuse_ccby_license()\n# Before next step → stage & commit changes\nuse_github() # Connect local repo to GitHub\n```\n:::\n\n\n#### Rename default branch\n\n\n::: {.cell}\n\n```{.r .cell-code}\nlibrary(usethis)\ngit_default_branch()\ngit_default_branch_rename()\ngit_default_branch_rediscover()\n```\n:::\n\n\n#### set-up git and manage GitHub credentials\n\n\n::: {.cell}\n\n```{.r .cell-code}\n# Sign-in to your GitHub account\n# Read: https://usethis.r-lib.org/articles/articles/git-credentials.html\n# Read: https://usethis.r-lib.org/articles/articles/usethis-setup.html\nusethis::create_github_token()\ngitcreds::gitcreds_set()\ngh::gh_whoami()\nusethis::gh_token_help()\nusethis::use_git_config(user.name = \"Jane Doe\", user.email = \"[email protected]\")\nusethis::gh_token_help()\n```\n:::\n\n\n### Next Level...\n\nTake your reproducibility to the next level. [Make your code citable](https://guides.github.com/activities/citable-code/) by connecting your GitHub repo and your [ORCID](https://orcid.org/register) (unique author ID) through to the [Zenodo](https://zenodo.org/) archival repository. Now, every time you commit a milestone release, you also mint a DOI.\n\n#### Share a zero-install compute environment\n\nPublish your code in a binder.org container\n\n- Full documentation to create a sharable RStudio compute environment is [documented on this Quarto page about projects](https://quarto.org/docs/projects/binder.html).\n\n- The key elements are an `install.R` and `runtime.txt` files. The content and format of each file is demonstrated properly at the GitHub repo. Browse and you will see.\n\n- In summary, at the Terminal, type: `quarto use binder`\n\n##### Hints\n\nGenerate a binder badge with `usethis::use_binder_badge(urlpath = \"rstudio\")`. This should store the badge in your GitHub's project `README` file. Then `commit` and `push` your changes to GitHub; go to the README on GitHub, launch the build and wait for the long launch/build time.\n\nHint: be prepared to wait. The first build can take some time. Sometimes you must launch an initial or dormant build more than once. In my experienced these hiccups are rare, but try the launch twice before getting involved in extensive troubleshooting.\n\n------------------------------------------------------------------------\n\n*The old documentation from this site can be found in the [v.0.2019 release](https://github.com/data-and-visualization/git-tutorial/releases/tag/v0.9.2019) on GitHub*.\n",
6+
"supporting": [],
7+
"filters": [
8+
"rmarkdown/pagebreak.lua"
9+
],
10+
"includes": {
11+
"include-in-header": [
12+
"<link href=\"site_libs/pagedtable-1.1/css/pagedtable.css\" rel=\"stylesheet\" />\n<script src=\"site_libs/pagedtable-1.1/js/pagedtable.js\"></script>\n"
13+
]
14+
},
15+
"engineDependencies": {},
16+
"preserve": {},
17+
"postProcess": true
18+
}
19+
}

_freeze/site_libs/clipboard/clipboard.min.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
.pagedtable {
2+
overflow: auto;
3+
padding-left: 8px;
4+
padding-right: 8px;
5+
}
6+
7+
.pagedtable-wrapper {
8+
border: 1px solid #ccc;
9+
border-radius: 4px;
10+
margin-bottom: 10px;
11+
}
12+
13+
.pagedtable table {
14+
width: 100%;
15+
max-width: 100%;
16+
margin: 0;
17+
}
18+
19+
.pagedtable th {
20+
padding: 0 5px 0 5px;
21+
border: none;
22+
border-bottom: 2px solid #dddddd;
23+
24+
min-width: 45px;
25+
}
26+
27+
.pagedtable-empty th {
28+
display: none;
29+
}
30+
31+
.pagedtable td {
32+
padding: 0 4px 0 4px;
33+
}
34+
35+
.pagedtable .even {
36+
background-color: rgba(140, 140, 140, 0.1);
37+
}
38+
39+
.pagedtable-padding-col {
40+
display: none;
41+
}
42+
43+
.pagedtable a {
44+
-webkit-touch-callout: none;
45+
-webkit-user-select: none;
46+
-khtml-user-select: none;
47+
-moz-user-select: none;
48+
-ms-user-select: none;
49+
user-select: none;
50+
}
51+
52+
.pagedtable-index-nav {
53+
cursor: pointer;
54+
padding: 0 5px 0 5px;
55+
float: right;
56+
border: 0;
57+
}
58+
59+
.pagedtable-index-nav-disabled {
60+
cursor: default;
61+
text-decoration: none;
62+
color: #999;
63+
}
64+
65+
a.pagedtable-index-nav-disabled:hover {
66+
text-decoration: none;
67+
color: #999;
68+
}
69+
70+
.pagedtable-indexes {
71+
cursor: pointer;
72+
float: right;
73+
border: 0;
74+
}
75+
76+
.pagedtable-index-current {
77+
cursor: default;
78+
text-decoration: none;
79+
font-weight: bold;
80+
color: #333;
81+
border: 0;
82+
}
83+
84+
a.pagedtable-index-current:hover {
85+
text-decoration: none;
86+
font-weight: bold;
87+
color: #333;
88+
}
89+
90+
.pagedtable-index {
91+
width: 30px;
92+
display: inline-block;
93+
text-align: center;
94+
border: 0;
95+
}
96+
97+
.pagedtable-index-separator-left {
98+
display: inline-block;
99+
color: #333;
100+
font-size: 9px;
101+
padding: 0 0 0 0;
102+
cursor: default;
103+
}
104+
105+
.pagedtable-index-separator-right {
106+
display: inline-block;
107+
color: #333;
108+
font-size: 9px;
109+
padding: 0 4px 0 0;
110+
cursor: default;
111+
}
112+
113+
.pagedtable-footer {
114+
padding-top: 4px;
115+
padding-bottom: 5px;
116+
}
117+
118+
.pagedtable-not-empty .pagedtable-footer {
119+
border-top: 2px solid #dddddd;
120+
}
121+
122+
.pagedtable-info {
123+
overflow: hidden;
124+
color: #999;
125+
white-space: nowrap;
126+
text-overflow: ellipsis;
127+
}
128+
129+
.pagedtable-header-name {
130+
overflow: hidden;
131+
text-overflow: ellipsis;
132+
}
133+
134+
.pagedtable-header-type {
135+
color: #999;
136+
font-weight: 400;
137+
}
138+
139+
.pagedtable-na-cell {
140+
font-style: italic;
141+
opacity: 0.3;
142+
}

0 commit comments

Comments
 (0)