C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: cannot find -lsz
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'rGEDI'
* removing 'C:/Users/monikat/AppData/Local/R/win-library/4.2/rGEDI'
UPDATE: What fixed the problem was to uninstall and install again rtools42 using windows installer from https://cran.r-project.org/bin/windows/Rtools/rtools42/rtools.html
Now, I am getting a different error:
My R is 4.2.2
Originally posted by @Rapsodia86 in https://github.com/carlos-alberto-silva/rGEDI/issues/45#issuecomment-1344727028