You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,11 @@ This is a copy of the [Quarto website template](https://github.com/Openscapes/qu
10
10
11
11
Feel free to fork or as a template. Though if you want to start more bare bones, use the Openscapes [Quarto website template](https://github.com/Openscapes/quarto-website-tutorial).
12
12
13
-
# How does it work?
13
+
# Contributing
14
14
15
-
This online book is being built automatically with a GitHub Action. The Action is not loading R (or Python), so any code you have in your qmd files will not render and in fact will cause the GitHub Action to fail. Note, for plain markdown, you can use `.md` instead of `.qmd`. You'll need to edit the workflow in the `.github/workflows` folder to install R/Python if you have code.
15
+
This online book is being built automatically with a GitHub Action. Edit the qmd or md files in the content directory and edit `_quarto.yml` if you add pages. Push the changes to GitHub and the book will automatically rebuild.
16
+
17
+
The Action is not loading R (or Python), so any code you have in your qmd files will not render and in fact will cause the GitHub Action to fail. Note, for plain markdown, you can use `.md` instead of `.qmd`. You'll need to edit the workflow in the `.github/workflows` folder to install R/Python if you have code.
16
18
17
19
The structure of the book is in `_quarto.yml`. The rest should be self-explanatory after you look at that file.
Copy file name to clipboardExpand all lines: content/github/authenticating.qmd
+53-17Lines changed: 53 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,38 @@ title: Authenticating and Installing
6
6
7
7
Ask IT to install Git or GitHub Desktop. The later is more useful since you will get a good Git GUI and Git bundled together.
8
8
9
-
## Git and RStudio
9
+
## Authenticating
10
+
11
+
You need to authenticate in order to pull private repos and push to GitHub.
12
+
13
+
### GitHub Desktop
14
+
15
+
No tokens needed.
16
+
17
+
1. Sign in under GitHub Desktop > Settings (or Options) > Account.
18
+
2. Fill out your user info on GitHub Desktop > Settings (or Options) > Account.
19
+
3. Sign in at GitHub.com and ignore the GitHub Enterprise section, even if you use Enterprise Cloud. The Enterprise section if for signing into a Enterprise account on a private server.
20
+
21
+
**Help! I signed up for GitHub Enterprise and GitHub Desktop will not authenticate!!**
22
+
Log out of GitHub Desktop under GitHub Desktop > Settings (or Options) > Account and log back in.
23
+
24
+

25
+
26
+
### Visual Studio Code (VSCode)
27
+
28
+
No tokens needed but you will need Git installed. <https://code.visualstudio.com/docs/sourcecontrol/github>
29
+
30
+
1. Install [GitHub Pull Requests and Issues](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github).
31
+
2. Click on the GitHub icon in left nav bar and open a GitHub repo on your computer.
32
+
3. Click on the GitHub icon (again) and sign into GitHub with your username and password.
33
+
34
+
### GitKraken Desktop
35
+
36
+
No tokens needed. Log in with your GitHub account. <https://help.gitkraken.com/gitkraken-desktop/github-gitkraken-desktop/>
37
+
38
+
### RStudio
39
+
40
+
#### Git and RStudio
10
41
11
42
In order for RStudio to use Git, it needs to know where your Git binary is installed. Instructions: <https://happygitwithr.com/rstudio-see-git>
12
43
@@ -22,21 +53,9 @@ In order for RStudio to use Git, it needs to know where your Git binary is insta
22
53
2. There is a box at top that asks for the location of the Git binary.
23
54
3. Paste that path in.
24
55
25
-
## Authenticating
56
+
####Authenticating
26
57
27
-
### GitHub Desktop
28
-
29
-
No tokens needed.
30
-
31
-
1. Sign in under GitHub Desktop > Settings (or Options) > Account.
32
-
2. Fill out your user info on GitHub Desktop > Settings (or Options) > Git.
33
-
34
-
**Help! I signed up for GitHub Enterprise and GitHub Desktop will not authenticate!!**
35
-
Log out of GitHub Desktop under GitHub Desktop > Settings (or Options) > Account and log back in.
36
-
37
-
### R users with RStudio
38
-
39
-
Install the `usethis` and `credentials` packages. Then run this code.
58
+
Install the R package `usethis`. Then run this code.
## create a personal access token for authentication:
46
65
usethis::create_github_token()
47
66
```
48
-
Copy the token. It is really long. Copy that into `YourPAT` in code below.
67
+
The typical scope that you want is repo and workflow (if you have GitHub Actions). Copy the token. It is really long. Copy that into `YourPAT` in code below.
68
+
49
69
```
50
70
## set personal access token:
51
71
credentials::set_github_pat("YourPAT")
@@ -56,7 +76,18 @@ Note for Linux users:
56
76
when the computer is rebooted. You thus may wish to do extend the cache timeout to match the PAT validity period:
If you will be pushing and pulling from repos in GitHub Enterprise, you will need to Configure SSO. Click on the button next to the token and follow the instructions.
84
+
85
+

86
+
87
+
88
+
### In terminal with a Personal Access Token
89
+
90
+
If you have authenticated with R following the instructions above, you do not need to authenticate again to use Git in the terminal. Conversely, if you authenticate in the terminal, you do not need to run the R code above.
60
91
61
92
1. Go to <https://github.com/settings/tokens>
62
93
2. Click generate new token.
@@ -75,5 +106,10 @@ Next in the terminal window type one of these
On January 11, 2023, the White House Office of Science and Technology Policy (OSTP) launched 2023 as the Year of Open Science to advance national open science policies across the federal government: [White House Fact Sheet on Year of Open Science](https://www.whitehouse.gov/ostp/news-updates/2023/01/11/fact-sheet-biden-harris-administration-announces-new-actions-to-advance-open-and-equitable-research/). Along with this they created a [federal portal for open science research announcements](https://open.science.gov/).
6
+
7
+
## What is Open Science?
8
+
9
+
Here is the pithy definition that OSTP and the National Science and Technology Council (NSTC) for use across the U.S. government: “The principle and practice of making research products and processes available to all, while respecting diverse cultures, maintaining security and privacy, and fostering collaborations, reproducibility, and equity.”
10
+
11
+
Here is the definition from NASA's [Open-Source Science Initiative](https://science.nasa.gov/open-science-overview).
12
+
13
+
*"Open-source science is a commitment to the open sharing of software, data, and knowledge (algorithms, papers, documents, ancillary information) as early as possible in the scientific process. The principles of open-source science are to make publicly funded scientific research transparent, inclusive, accessible, and reproducible. Advances in technology, including collaborative tools and cloud computing, help enable open-source science, but technology alone is insufficient. Open-source science requires a culture shift to a more inclusive, transparent, and collaborative scientific process, which will increase the pace and quality of scientific progress."*
14
+
15
+
So it is both a principle of sharing openly (data, research, products) but also the work to make the cultural shifts in how we do our research so that it can be inclusive, transparent, reproducible and collaborative.
16
+
17
+
18
+
## Open Science at NMFS
19
+
20
+
NOAA Fisheries has many efforts that fall under the rubric of Open Science. Here are some of them.
0 commit comments