Explorar el Código

create a sample configuration file

George C. Privon hace 6 años
padre
commit
b86d076722
Se han modificado 3 ficheros con 8 adiciones y 1 borrados
  1. 3 0
      .gitignore
  2. 1 1
      README.md
  3. 4 0
      config.R.example

+ 3 - 0
.gitignore

@@ -2,3 +2,6 @@
 .Rhistory
 .RData
 .Ruserdata
+
+# ignore a filled out configuration file
+config.R

+ 1 - 1
README.md

@@ -8,7 +8,7 @@ The maps are generated with [`R`](https://www.r-project.org/) and the [`leaflet`
 *None of these steps are currently implemented.
 These are here to guide my development.*
 
-1. Edit configuration file to point to the location of GPX files and GPS-tagged image files.
+1. Copy example configuration file (`config.R.example`) to `config.R` and edit it to point to the location of GPX files and GPS-tagged image files.
 2. Run `clean_gpx.R` to prepare GPX files for mapping in leaflet.
 3. Run `gen_map.R` to generate a web page for the trip, using all of the GPX files and GPS-tagged images in the specified directory.
 

+ 4 - 0
config.R.example

@@ -0,0 +1,4 @@
+# Configuration file
+
+gpxdir <- "/path/to/gpx/files/"
+imgdir <- "/path/to/images/"