r-spatial / link2GI

Simplify the linking of GIS/RS and CLI tools
https://r-spatial.github.io/link2GI
GNU General Public License v3.0
25 stars 7 forks source link

searchLocation attribute of linkGDAL function leads to an error #63

Closed konstantinengelmayer closed 4 months ago

konstantinengelmayer commented 4 months ago

Hello Chris, there is an issue with the searchLocation attribute of the linkGDAL function.

gdal <- link2GI::linkGDAL(searchLocation = "C:/Program Files/QGIS 3.34.5")

Error in .rowNamesDF<-(x, value = value) : invalid 'row.names' length

sessionInfo()

R version 4.3.3 (2024-02-29 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19045)

Matrix products: default

locale: [1] LC_COLLATE=English_Germany.utf8 LC_CTYPE=English_Germany.utf8 LC_MONETARY=English_Germany.utf8 [4] LC_NUMERIC=C LC_TIME=English_Germany.utf8

time zone: Europe/Berlin tzcode source: internal

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] dplyr_1.1.4 sf_1.0-16 terra_1.7-71 raster_3.6-26 sp_2.1-3 tmaptools_3.1-1 tmap_3.3-4
[8] mapview_2.11.2

loaded via a namespace (and not attached): [1] RColorBrewer_1.1-3 rstudioapi_0.16.0 magrittr_2.0.3 fs_1.6.3 vctrs_0.6.5
[6] ROCR_1.0-11 memoise_2.0.1 config_0.3.2 base64enc_0.1-3 htmltools_0.5.8.1
[11] forcats_1.0.0 leafsync_0.1.0 usethis_2.2.3 pROC_1.18.5 caret_6.0-94
[16] parallelly_1.37.1 KernSmooth_2.23-22 htmlwidgets_1.6.4 plyr_1.8.9 stars_0.6-5
[21] lubridate_1.9.3 cachem_1.0.8 mime_0.12 lifecycle_1.0.4 iterators_1.0.14
[26] pkgconfig_2.0.3 Matrix_1.6-5 R6_2.5.1 fastmap_1.1.1 future_1.33.2
[31] shiny_1.8.1.1 digest_0.6.35 colorspace_2.1-0 leafem_0.2.3 pkgload_1.3.4
[36] crosstalk_1.2.1 lwgeom_0.2-14 fansi_1.0.6 timechange_0.3.0 abind_1.4-5
[41] compiler_4.3.3 proxy_0.4-27 remotes_2.5.0 withr_3.0.0 DBI_1.2.2
[46] rgdal_1.6-7 pkgbuild_1.4.4 R.utils_2.12.3 maps_3.4.2 MASS_7.3-60.0.1
[51] lava_1.8.0 sessioninfo_1.2.2 leaflet_2.2.2 classInt_0.4-10 ModelMetrics_1.2.2.2 [56] tools_4.3.3 units_0.8-5 httpuv_1.6.15 future.apply_1.11.2 nnet_7.3-19
[61] R.oo_1.26.0 glue_1.7.0 satellite_1.0.5 nlme_3.1-164 promises_1.3.0
[66] grid_4.3.3 reshape2_1.4.4 generics_0.1.3 recipes_1.0.10 link2GI_0.5-3
[71] gtable_0.3.5 R.methodsS3_1.8.2 class_7.3-22 data.table_1.15.4 xml2_1.3.6
[76] utf8_1.2.4 foreach_1.5.2 pillar_1.9.0 stringr_1.5.1 pals_1.8
[81] later_1.3.2 splines_4.3.3 lattice_0.22-6 survival_3.5-8 tidyselect_1.2.1
[86] miniUI_0.1.1.1 knitr_1.46 CAST_1.0.0 stats4_4.3.3 xfun_0.43
[91] hardhat_1.3.1 devtools_2.4.5 timeDate_4032.109 sperrorest_3.0.5 stringi_1.8.3
[96] yaml_2.3.8 codetools_0.2-20 tibble_3.2.1 cli_3.6.2 rpart_4.1.23
[101] xtable_1.8-4 munsell_0.5.1 roxygen2_7.3.1 dichromat_2.0-0.1 Rcpp_1.0.12
[106] globals_0.16.3 mapproj_1.2.11 png_0.1-8 XML_3.99-0.16.1 parallel_4.3.3
[111] ellipsis_0.3.2 gower_1.0.1 ggplot2_3.5.0 exactextractr_0.10.0 profvis_0.3.8
[116] urlchecker_1.0.1 envimaR_0.1.0 listenv_0.9.1 viridisLite_0.4.2 ipred_0.9-14
[121] scales_1.3.0 prodlim_2023.08.28 e1071_1.7-14 crayon_1.5.2 purrr_1.0.2
[126] rlang_1.1.3

gisma commented 4 months ago

Thanks, hope this fix it.

konstantinengelmayer commented 4 months ago

Unfortunatly, after updating link2GI-Package, the error remains. I also changed QGIS's Path from C:/Program Files/QGIS 3.34.5 to C:/Program Files/QGIS_3.34.5 to rule out errors due to the space in the file name.

gisma commented 4 months ago

I think now it will work

konstantinengelmayer commented 4 months ago

Unfortunatly not. Now it gives the same error even without using the searchLocation Attribute.