Lecture notes for Harvard ES/AM 158 Introduction to Optimal Control and Estimation
-
Clone this repo to your local environment
-
To build this book and preview local copies of the html files and book pdf, below is what I have done (on my macbook)
-
Install the RStudio IDE. Note that you need a version higher than 1.0.0. Please download the latest version if your RStudio version is lower than 1.0.0.
-
Open RStudio IDE and install the R package bookdown, after which you can close RStudio IDE
# stable version on CRAN install.packages("bookdown") # or development version on GitHub # remotes::install_github('rstudio/bookdown')
- Open the repo using VSCode and in the terminal run:
./_build.sh
Then you should see a folder
_bookgenerated in this repo, where you should see all the local html files. Open the html files using your browser to preview the textbook. You can also preview the pdf file of the book if you want.You can also build the book using RStudio, but for some reason that way did not give me what I want.
-
-
Edit the
.Rmdfiles of corresponding chapters. The syntax of writing R markdown is quite similar to latex. You can find detailed documentation here. You can also look at the files I have written and I believe you will enjoy writing R markdown pretty quickly. -
After you are done with your edits, and you have checked that the book can still compile after your edits (preview the html files to make sure they look the way you want), you can push your changes to the
mainbranch (you should pull first before your push, in case other people have made their changes too). -
The edits you made will automatically take effects on Hank's website in a few minutes.