# Sample Code ## Psuedo Code to loop thru files: ``` ## Loop through files ## Step 1. Get a the list of files ## my_files = list.files(dir, "*.tif") ## alternative approach - put the files you want to process in a text file ## dir /b/s *.tif >my_files.txt ## Then you would open my_files.txt (with open(..), then loop through those ## with the readline() function) ## Step 2. Loop though the files ** for (fn in my_files) { x <- st_read(fn) x_transformed <- x %>% st_transform(..) %>% st_intersection(...) st_write(x_transformed) } # ** Alternate construction for (i in 1:length(my_files)) { fn <- my_files[i] ### ... } ``` --- | Bring | It | Home | | ----- | ------ |:-------:| | None | Apples | Bananas | # Bing Me ## More sample code > What do you mean, he asked? ![](https://i.imgur.com/evfKa2T.png) ``` ``` ## Create a LiveODM ISO sudo su cd /cdrom cd liveodm ./envsetup.sh ## Install xorriso sudo apt-get update -y sudo apt-get install -y xorriso "Package xorriso is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source" ## Making a LiveCD Persistent "I found the answer. All you need to do is add a user in the user accounts section. If you just use the standard guest login the changes will never save."" https://help.ubuntu.com/community/LiveCD/Persistence