JanCaha / r_package_qgis

https://jancaha.github.io/r_package_qgis/
Other
27 stars 4 forks source link

Install fails due to lack of export from qgisprocess #35

Closed bholtdwyer closed 1 year ago

bholtdwyer commented 1 year ago

Hi! When I try to install this package on R 4.3.0, I get the following:

> remotes::install_github("JanCaha/r_package_qgis")
Downloading GitHub repo JanCaha/r_package_qgis@HEAD
── R CMD build ─────────────────────────────────────────────────────────────────────────────
✔  checking for file 'C:\Users\holtd\AppData\Local\Temp\RtmpQLNu9F\remotes814c4245514d\JanCaha-r_package_qgis-caefdf8/DESCRIPTION' (668ms)
─  preparing 'qgis': (20.9s)
✔  checking DESCRIPTION meta-information ... 
─  checking for LF line-endings in source and make files and shell scripts (6.6s)
─  checking for empty or unneeded directories
   Omitted 'LazyData' from DESCRIPTION
─  building 'qgis_3.26.3.9007.tar.gz'

Installing package into ‘C:/Users/holtd/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)
Loading required package: plyr
Loading required package: rlang
Loading required package: dplyr

Attaching package: 'dplyr'

The following objects are masked from 'package:plyr':

    arrange, count, desc, failwith, id, mutate, rename, summarise,
    summarize

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

Loading required package: conflicted
Loading required package: readxl
Loading required package: testit
Loading required package: data.table
Loading required package: stats
Loading required package: Hmisc
Loading required package: sf
Linking to GEOS 3.11.2, GDAL 3.6.2, PROJ 9.2.0; sf_use_s2() is TRUE
Loading required package: tidyverse
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ forcats   1.0.0     ✔ readr     2.1.4
✔ ggplot2   3.4.2     ✔ stringr   1.5.0
✔ lubridate 1.9.2     ✔ tibble    3.2.1
✔ purrr     1.0.1     ✔ tidyr     1.3.0
Loading required package: raster
Loading required package: sp
Loading required package: gdata
Loading required package: viridis
Loading required package: viridisLite
Loading required package: foreign
Loading required package: haven
[conflicted] Will prefer base::intersect over any other package.
[conflicted] Will prefer dplyr::summarize over any other package.
[conflicted] Will prefer dplyr::filter over any other package.
[conflicted] Will prefer dplyr::select over any other package.
[conflicted] Will prefer dplyr::summarise over any other package.
[conflicted] Will prefer dplyr::arrange over any other package.
[conflicted] Will prefer dplyr::rename over any other package.
[conflicted] Will prefer dplyr::mutate over any other package.
[conflicted] Will prefer terra::extract over any other package.
[conflicted] Will prefer testit::assert over any other package.
[1] "I'm a Windows PC."
During startup - Warning message:
The `size` argument of `element_line()` is deprecated as of ggplot2 3.4.0.
ℹ Please use the `linewidth` argument instead. 
* installing *source* package 'qgis' ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Loading required package: plyr
Loading required package: rlang
Loading required package: dplyr

Attaching package: 'dplyr'

The following objects are masked from 'package:plyr':

    arrange, count, desc, failwith, id, mutate, rename, summarise,
    summarize

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

Loading required package: conflicted
Loading required package: readxl
Loading required package: testit
Loading required package: data.table
Loading required package: stats
Loading required package: Hmisc
Loading required package: sf
Linking to GEOS 3.11.2, GDAL 3.6.2, PROJ 9.2.0; sf_use_s2() is TRUE
Loading required package: tidyverse
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ forcats   1.0.0     ✔ readr     2.1.4
✔ ggplot2   3.4.2     ✔ stringr   1.5.0
✔ lubridate 1.9.2     ✔ tibble    3.2.1
✔ purrr     1.0.1     ✔ tidyr     1.3.0
Loading required package: raster
Loading required package: sp
Loading required package: gdata
Loading required package: viridis
Loading required package: viridisLite
Loading required package: foreign
Loading required package: haven
[conflicted] Will prefer base::intersect over any other package.
[conflicted] Will prefer dplyr::summarize over any other package.
[conflicted] Will prefer dplyr::filter over any other package.
[conflicted] Will prefer dplyr::select over any other package.
[conflicted] Will prefer dplyr::summarise over any other package.
[conflicted] Will prefer dplyr::arrange over any other package.
[conflicted] Will prefer dplyr::rename over any other package.
[conflicted] Will prefer dplyr::mutate over any other package.
[conflicted] Will prefer terra::extract over any other package.
[conflicted] Will prefer testit::assert over any other package.
[1] "I'm a Windows PC."
During startup - Warning message:
The `size` argument of `element_line()` is deprecated as of ggplot2 3.4.0.
ℹ Please use the `linewidth` argument instead. 
Error: object 'qgis_default_value' is not exported by 'namespace:qgisprocess'
Execution halted
ERROR: lazy loading failed for package 'qgis'
* removing 'C:/Users/holtd/AppData/Local/R/win-library/4.3/qgis'
Warning message:
In i.p(...) :
  installation of package ‘C:/Users/holtd/AppData/Local/Temp/RtmpQLNu9F/file814c165c4caa/qgis_3.26.3.9007.tar.gz’ had non-zero exit status
florisvdh commented 1 year ago

@JanCaha this is what PR #34 is meant for. It only updates the build and test infrastructure though, not the resulting functions (except for R/utils.R).

@bholtdwyer a temporary attempt to also fix the latter is in my fork, but I guess that Jan is going to do this here by running build scripts. For now you could try remotes::install_github("florisvdh/r_package_qgis@qgis_default_value") and see whether that works. You also need the current version of qgisprocess.

JanCaha commented 1 year ago

Should be solved by @florisvdh PR.