Snap and autotools plugin

apps:
  R:
    environment:
      LC_ALL: en_US.UTF-8
      LANG: en_US.UTF-8 

Should use C.UTF-8 locale as it is the only locale supported by the snap runtime.


parts:
  r:
    override-build: |
      snapcraftctl build

Unnecessary scriptlet (probably leftover, though)


parts:
  r:
#    organize:
#      snap/r-base/usr: usr

Try the following(example):

    organize:
      snap/$SNAPCRAFT_PROJECT_NAME/current: /

parts:
  r:
    stage-packages:
      - libtcl8.6
      - libtk8.6

The tcltk-launch launcher: Fix Tcl/Tk applications in the snap runtime may help.

1 Like