Skip to content

Commit

Permalink
Use units instead of xml2
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaiacs committed May 31, 2023
1 parent d1435a6 commit 6765c8c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,19 @@ plot(rnorm(10), rnorm(10))
Packages that need to be installed for the reader should be listed in the `install.R` file. For example, with

```r
install.packages("xml2")
install.packages("units")
```

in the `install.R` file, is possible to execute

```{r}
library(xml2)
library(units)
html_page <- read_html("<html><title>Hi<title></html>")
spd1 = set_units(1:5, m/s)
xml_name(html_page)
spd2 = set_units(1:5, km/h)
spd1 + spd2
```

## Binder
Expand Down

0 comments on commit 6765c8c

Please sign in to comment.