sinkovit / Spatial-ecology

Space use software deployed in the Spatial Ecology Gateway
MIT License
2 stars 0 forks source link

Save Movebank credential #68

Closed monaw closed 4 months ago

monaw commented 8 months ago

Would be nice to have a way to save Movebank credential so the user doesn't have to enter it over and over Suggestions: use Keyring or environment variable

monaw commented 4 months ago

code works in RStudio but not on the hub...

monaw commented 4 months ago

Sys.getenv():

MovebankUsername =

MovebankStudyID =

Sys.getenv keys: EDITOR, GGMAP_STADIAMAPS_API_KEY, HOME, LANG, LD_LIBRARY_PATH, LN_S, LOG_FILE, MAKE, PAGER, PATH, PWD, R_ARCH, R_BROWSER, R_BZIPCMD, R_DOC_DIR, R_GZIPCMD, R_HOME, R_INCLUDE_DIR, R_LIBS_SITE, R_LIBS_USER, R_PAPERSIZE, R_PDFVIEWER, R_PLATFORM, R_PRINTCMD, R_RD4PDF, R_SESSION_TMPDIR, R_SHARE_DIR, R_STRIP_SHARED_LIB, R_STRIP_STATIC_LIB, R_SYSTEM_ABI, R_TEXI2DVICMD, R_UNZIPCMD, R_ZIPCMD, RSTUDIO_PANDOC, SED, SHINY_APP, SHINY_GAID, SHINY_MODE, SHINY_PORT, SHINY_SERVER_VERSION, SHINY_SHARED_SECRET, SHLVL, TAR, WORKER_ID

Sys.getenv values: vi, 440efafe-16e4-49fd-a696-695057b606a6, /home/uccommunityhub/mona, en_US.UTF-8, /apps/share64/debian10/R/4.0.5/lib/R/lib:/usr/local/lib:/usr/lib/x86_64-linux-gnu:/usr/lib/jvm/java-11-openjdk-amd64/lib/server, ln -s, , make, /usr/bin/less, /apps/mkde/dev/bin:/apps/share64/debian10/shiny-server/shiny-server-1.5.17.973/hubbin:/apps/share64/debian10/shiny-server/shiny-server-1.5.17.973/shiny-server/bin:/apps/share64/debian10/wrwroxy/0.2:/apps/share64/debian10/R/4.0.5/bin:/apps/share64/debian10/gdal/gdal-3.1.2/bin:/apps/share64/debian10/netcdf-c/netcdf-c-4.5.0/bin:/apps/share64/debian10/hdf5/hdf5-1.8.16/serial/bin:/apps/share64/debian10/hdf/hdf-4.2.13/bin:/apps/share64/debian10/proj/proj-6.3.2/bin:/apps/share64/debian10/sqlite/sqlite-3.32.3/bin:/bin:/usr/bin:/usr/bin/X11:/sbin:/usr/sbin, /apps/mkde/r318/bin, , /usr/bin/firefox, /bin/bzip2, /apps/share64/debian10/R/4.0.5/lib/R/doc, /bin/gzip, /apps/share64/debian10/R/4.0.5/lib/R, /apps/share64/debian10/R/4.0.5/lib/R/include, , ~/R/x86_64-pc-linux-gnu-library/4.0, a4, /usr/bin/xdg-open, x86_64-pc-linux-gnu, , times,hyper, /tmp/RtmpWIw6uI, /apps/share64/debian10/R/4.0.5/lib/R/share, strip --strip-unneeded, strip --strip-debug, linux,gcc,gxx,gfortran,gfortran, texi2dvi, /usr/bin/unzip, /usr/bin/zip, /apps/share64/debian10/shiny-server/shiny-server-1.5.17.973/shiny-server/ext/pandoc, /bin/sed, /apps/mkde/dev/bin, , shiny, 37860, 1.5.17.0, 0b2ada05a8c637abbf6b40f6f3dab0ff, 0, /bin/tar, 2af3d9631c6748ea

monaw commented 4 months ago

done, now working in the hub. we are saving our custom app's configuration in ~/.mkde