Skip to content

Commit 43fa093

Browse files
committed
markdown source builds
Auto-generated via {sandpaper} Source : 5c860fa Branch : main Author : Naupaka Zimmerman <[email protected]> Time : 2024-09-20 22:06:46 +0000 Message : Merge pull request #276 from datacarpentry/update/packages Update 12 packages
1 parent 7ef203c commit 43fa093

11 files changed

+329
-1391
lines changed

00-introduction.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ First, lets see what directory we are in. To do so, type the following command
275275
into the script:
276276

277277

278-
```r
278+
``` r
279279
getwd()
280280
```
281281

@@ -299,7 +299,7 @@ not try to interpret as code. Edit your script to include a comment on the
299299
purpose of commands you are learning, e.g.:
300300

301301

302-
```r
302+
``` r
303303
# this command shows the current working directory
304304
getwd()
305305
```
@@ -330,7 +330,7 @@ What if you weren't? You can set your home directory using the `setwd()`
330330
command. Enter this command in your script, but *don't run* this yet.
331331

332332

333-
```r
333+
``` r
334334
# This sets the working directory
335335
setwd()
336336
```
@@ -343,7 +343,7 @@ advantage of RStudio's Tab-autocompletion method, to select `home`, `dcuser`,
343343
and `dc_genomics_r` directory. The path in your script should look like this:
344344

345345

346-
```r
346+
``` r
347347
# This sets the working directory
348348
setwd("/home/dcuser/dc_genomics_r")
349349
```
@@ -423,12 +423,12 @@ function's behavior. For example the function `round()` will round a number
423423
with a decimal:
424424

425425

426-
```r
426+
``` r
427427
# This will round a number to the nearest integer
428428
round(3.14)
429429
```
430430

431-
```output
431+
``` output
432432
[1] 3
433433
```
434434

@@ -440,7 +440,7 @@ do this, but you may first need to read the help to find out how. To see the hel
440440
name:
441441

442442

443-
```r
443+
``` r
444444
?round()
445445
```
446446

@@ -451,11 +451,11 @@ also see what arguments we can pass to this function to modify its behavior.
451451
You can also see a function's argument using the `args()` function:
452452

453453

454-
```r
454+
``` r
455455
args(round)
456456
```
457457

458-
```output
458+
``` output
459459
function (x, digits = 0, ...)
460460
NULL
461461
```
@@ -469,11 +469,11 @@ a different value. We can explicitly set the digits parameter when we call the
469469
function:
470470

471471

472-
```r
472+
``` r
473473
round(3.14159, digits = 2)
474474
```
475475

476-
```output
476+
``` output
477477
[1] 3.14
478478
```
479479

@@ -483,18 +483,18 @@ when we used `args()`. In the case below that means that `x` is 3.14159 and
483483
digits is 2.
484484

485485

486-
```r
486+
``` r
487487
round(3.14159, 2)
488488
```
489489

490-
```output
490+
``` output
491491
[1] 3.14
492492
```
493493

494494
Finally, what if you are using `?` to get help for a function in a package not installed on your system, such as when you are running a script which has dependencies.
495495

496496

497-
```r
497+
``` r
498498
?geom_point()
499499
```
500500

0 commit comments

Comments
 (0)