第 3 章 Start a Project

3.1 GitHub Desktop

以下在GitHub Desktop進行:

3.1.1 Sign in

  1. 依圖示叫出Sign in畫面

  2. GitHub.com的Sign In:

  3. 輸入你GitHub.com的username和password:

  4. 再回到步驟1,但這次點畫面的Git,填入你要顯示的匿稱及當時註冊email。

3.2 Create New Repository

NameLocal Path填你的訊息:

3.3 R Project

以下在RStudio進行:

Start a new project

File -> New Project …

Step 1

Step 2

Step 3

Step 4

Here we check create a git repository.
  • 避免中文路徑

到這裡為止,你已設定好一個程式開發專案的資料匣,它會同時記錄你每次使用R的環境狀況,也具備有在GitHub雲端備份及追踪進度的能力

Start a new file

Create a notebook: File–>New File–>R Notebook.

  1. Title: “YYYY-MM-DD”

  2. Click save: Name your file as YYYY-MM-DD

Step 1

Step 2

Step 3

  • 避免中文檔名

Save with Encoding

  1. File–>Save with Encoding…

  2. choose UTF8 and check Set as default encoding for source files.

Step 1

Step 2

GitHub Commit & Publish repository

打開GitHub Desktop

  1. Type your Summary

  2. Click Commit to master

  3. Click Publish repository.

  4. (不打勾) Uncheck Keep this code private.

  5. click Publish repository.

Step 1

Step 2

Step 3

New your project is saved in the cloud of your GitHub.com account. To see it,

In GitHub desktop,

click Repository–>View on GitHub

Step 1

Step 2

Step 3

往後的課堂練習同學請固定使用該repo。

請到以下表單填寫你的課堂練習repo資訊。 https://docs.google.com/forms/d/e/1FAIpQLSdvshSw-CxgRT_ZgGZCcmwNiqKght5O007Svi-QlGMVrkX27Q/viewform?usp=pp_url&entry.1897565094=107-2