Skip to content

Conversation

florisvdh
Copy link
Member

  • Export a general wrapper qgis_detect_paths() specifically for Windows and macOS, used as a helper in the next addition. See also Detect paths #152 (comment).
  • qgis_configure(): optionally detect and propose newer QGIS (win/mac)

The second addition only has effect (and happens while loading the package) if the following conditions are all true:

  • an option qgisprocess.detect_newer_qgis or env var R_QGISPROCESS_DETECT_NEWER_QGIS is set as TRUE
  • system is Windows or macOS
  • two or more QGIS installations are present in their own default path and these paths contain the QGIS version number (typical for the standalone installs)
  • the {qgisprocess} cache does not point at the newest version of those QGIS paths

If so, the user will be offered the possibility to switch to the newer QGIS version. Still to be tested in a real system.

This is a further addition wrt #187.

This iterates an idea that @JanCaha already proposed, but was not merged at the time
(#152 (comment)).

Specifically, the function is now explicitly limited to Windows and macOS.
This only has effect (and happens while loading the package) if the following conditions are all true:

- an option qgisprocess.detect_newer_qgis or env var R_QGISPROCESS_DETECT_NEWER_QGIS is set as TRUE
- system is Windows or macOS
- two or more QGIS installations are present in their own default path _and_ these paths contain the QGIS version number (typical for the standalone installs)
- the qgisprocess cache does not point at the newest version of those QGIS paths

If so, the user will be offered the possibility to switch to the newer QGIS version.

This is a further addition wrt #187.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant