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
@@ -120,8 +120,9 @@ Note that there is no forward slash at the beginning of a relative path; if we a
120
120
R would look for a folder named `data` in the root folder of the computer—but that doesn't exist!
121
121
122
122
Aside from specifying places to go in a path using folder names (like `data` and `worksheet_02`), we can also specify two additional
123
-
special places: the *current directory* and the *previous directory*. We indicate the current working directory with a single dot `.`, and
124
-
the previous directory with two dots `..`. So for instance, if we wanted to reach the `bike_share.csv` file from the `worksheet_02` folder, we could
123
+
special places: the *current directory* \index{path!current} and the *previous directory*. \index{path!previous}
124
+
We indicate the current working directory with a single dot `.`, and \index{aaaaaacurdirsymb@\texttt{.}|see{path}}
125
+
the previous directory with two dots `..`. \index{aaaaaprevdirsymb@\texttt{..}|see{path}} So for instance, if we wanted to reach the `bike_share.csv` file from the `worksheet_02` folder, we could
125
126
use the relative path `../tutorial_01/bike_share.csv`. We can even combine these two; for example, we could reach the `bike_share.csv` file using
126
127
the (very silly) path `../tutorial_01/../tutorial_01/./bike_share.csv` with quite a few redundant directions: it says to go back a folder, then open `tutorial_01`,
127
128
then go back a folder again, then open `tutorial_01` again, then stay in the current directory, then finally get to `bike_share.csv`. Whew, what a long trip!
@@ -1202,15 +1203,15 @@ That should be more than enough for our purposes in this section.
1202
1203
1203
1204
#### Accessing the NASA API {-}
1204
1205
1205
-
The NASA API is what is known as an *HTTP API*: this is a particularly common
1206
+
The NASA API is what is known as an *HTTP API*: \index{API!HTTP} this is a particularly common
1206
1207
kind of API, where you can obtain data simply by accessing a
1207
1208
particular URL as if it were a regular website. To make a query to the NASA
1208
-
API, we need to specify three things. First, we specify the URL *endpoint* of
1209
+
API, we need to specify three things. First, we specify the URL *endpoint* of \index{API!endpoint}
1209
1210
the API, which is simply a URL that helps the remote server understand which
1210
1211
API you are trying to access. NASA offers a variety of APIs, each with its own
1211
1212
endpoint; in the case of the NASA "Astronomy Picture of the Day" API, the URL
1212
1213
endpoint is `https://api.nasa.gov/planetary/apod`. Second, we write `?`, which denotes that a
1213
-
list of *query parameters* will follow. And finally, we specify a list of
1214
+
list of *query parameters*\index{API!query parameters} will follow. And finally, we specify a list of
1214
1215
query parameters of the form `parameter=value`, separated by `&` characters. The NASA
1215
1216
"Astronomy Picture of the Day" API accepts the parameters shown in
0 commit comments