pfmc-assessments / sa4ss

Generate a stock assessment document from Stock Synthesis output
https://pfmc-assessments.github.io/sa4ss/
Other
12 stars 7 forks source link

Glossaries warning for glossaries-english #28

Closed shcaba closed 1 year ago

shcaba commented 3 years ago

I am getting the following warning and not sure if this is common or what to do about it: Package glossaries Warning: No language module detected for english'. (glossaries) Language modules need to be installed separately. (glossaries) Please check on CTAN for a bundle called (glossaries)glossaries-english' or similar.

SO far seems not to affect the document, but any recommended fix is appreciated.

kellijohnson-NOAA commented 3 years ago

The package is not part of the tinytex install, so you have to install it. There are instructions in the README how to get rid of this warning but I am guessing we need to add the install automatically when people install sa4ss.

tinytex::tlmgr_install(pkgs="glossaries-english")
shcaba commented 3 years ago

I attempted to run the above line (having shutdown all instances of R and starting from scratch), but get the following length error indicating the glossary cannot be downloaded:

_**> tinytex::tlmgr_install(pkgs="glossaries-english")
tlmgr install glossaries-english
Unable to download the checksum of the remote TeX Live database,
but found a local copy, so using that.

You may want to try specifying an explicit or different CTAN mirror,
or maybe you need to specify proxy information if you're behind a firewall;
see the information and examples for the -repository option at
https://tug.org/texlive/doc/install-tl.html
(and in the output of install-tl --help).

tlmgr.pl: package repository https://ctan.math.illinois.edu/systems/texlive/tlnet (not verified: unknown)
[1/1, ??:??/??:??] install: glossaries-english [2k]
TLPDB::_install_data: downloading did not succeed (download_file failed) for https://ctan.math.illinois.edu/systems/texlive/tlnet/archive/glossaries-english.tar.xz
tlmgr.pl: package log updated: C:/Users/Jason.Cope/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr update --self
tlmgr install glossaries-english
Unable to download the checksum of the remote TeX Live database,
but found a local copy, so using that.

You may want to try specifying an explicit or different CTAN mirror,
or maybe you need to specify proxy information if you're behind a firewall;
see the information and examples for the -repository option at
https://tug.org/texlive/doc/install-tl.html
(and in the output of install-tl --help).

tlmgr.pl: package repository https://ctan.math.illinois.edu/systems/texlive/tlnet (not verified: unknown)
[1/1, ??:??/??:??] install: glossaries-english [2k]
TLPDB::_install_data: downloading did not succeed (download_file failed) for https://ctan.math.illinois.edu/systems/texlive/tlnet/archive/glossaries-english.tar.xz
tlmgr.pl: package log updated: C:/Users/Jason.Cope/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log**_

Is this a permissions issue?

kellijohnson-NOAA commented 3 years ago

Looks like it, but I am not positive. Did you try looking at the log file that was referenced to see if there is helpful information in it?

kellijohnson-NOAA commented 3 years ago

These instructions for installing beyond a firewall could be helpful but this github issue on tinytex appears to have actual instructions.

kellijohnson-NOAA commented 1 year ago

:trophy:

The help file for glossaries on CTAN documents that if you need user-defined language help for glossaries then the additional package will need to be installed. It tries to do it automatically but it might be made more difficult when using tinytex instead of TexLive because it has to install the package. So, for users of {sa4ss}, you might need to install {glossaries-english}.