glowabio / hydrographr

https://glowabio.github.io/hydrographr/
GNU General Public License v3.0
13 stars 1 forks source link

merge_tiles(): ERROR: Stderr: The command line is too long. #26

Open afrogri37 opened 1 year ago

afrogri37 commented 1 year ago

When trying to merge more than 80 .tif files on Windows, this error is thrown:

<system_command_status_error/rlib_error_3_0/rlib_error/error> Error in processx::run(system.file("bat", "merge_tiles.bat", package = "hydrographr"), …: ! System command 'merge_tiles.bat' failed

Exit status: 1 Stderr: The command line is too long.

Backtrace:

  1. hydrographr::merge_tiles(tile_dir = idir, tile_names = list.files(idir, full.names =…
  2. processx::run(system.file("bat", "merge_tiles.bat", package = "hydrogra…
  3. processx:::throw(new_process_error(res, call = sys.call(), echo = echo, …
afrogri37 commented 1 year ago

Can be skipped by merging the files in batches, and then merge the merged files.