🚀 Tasks
Follow the instructions in Submission via GitHub Pages to create a new repo in the existing organization. As you did in the previous weeks, solve the next task in a file named index.qmd.
Task 1
Task 2
- Redo Task 1 from Vector Deepdive. However, this time use
gdalfrom the command line to the processing. Note that you can usebashcommands in quarto, you just have to- set the language to
{bash}in the code chunk and - the
enginetoknitrin the YAML header
- set the language to
- Again, use the R package
tictocto measure the execute time of each step in the process. To measure the execution time of bash commands, you can use the approach shown below (which is a bit of a workaround since tictoc was made for R, not Bash commands) - Compare the execution times of all approaches (
sf,duckdb,terra,gdal). How do they differ?
```{r}
# starts the measurement
tictoc::tic(msg = "Step 1: Transform the data")
```
```{bash}
# gdal command
gdal raster convert input.tif output.tif
```
```{r}
# ends the measurement
tictoc::toc(log = TRUE)
```
```{r}
# Finally (to get a full log:)
tictoc::tic.log()
```