This is still an issue, and the code in setup/srqm_pkgs.ado and utils.ado (the pkgs utility) is too complicated and not even guaranteed to work properly.
Three possible situations:
running the course on a laptop with full admin privileges – everything works fine
running the course on a computer with restricted rights, from a USB stick – issue (1)
running the course on a computer with restricted rights, from the hard drive – issue (2)
Issue (1) might be easy:
detect if the pwd either contains /Volumes/ (Mac) or does not contain c:\ (Win), or equivalent on Unix
if so, install packages locally in the srqm/pkgs folder
This might fail if the hard drive is not C: on a Windows machine.
Issue (2) is bothersome. So far, the approach is to try the PLUS folder, and if it fails, the PERSONAL folder, and if it fails, install locally.
Perhaps it would be easier and better to just try out the default option, using something as simple as ssc inst fre, and if it fails for whatever reason, to fall back on the local install.
This is still an issue, and the code in
setup/srqm_pkgs.ado
andutils.ado
(thepkgs
utility) is too complicated and not even guaranteed to work properly.Three possible situations:
Issue (1) might be easy:
pwd
either contains/Volumes/
(Mac) or does not containc:\
(Win), or equivalent on Unixsrqm/pkgs
folderThis might fail if the hard drive is not
C:
on a Windows machine.Issue (2) is bothersome. So far, the approach is to try the PLUS folder, and if it fails, the PERSONAL folder, and if it fails, install locally.
Perhaps it would be easier and better to just try out the default option, using something as simple as
ssc inst fre
, and if it fails for whatever reason, to fall back on the local install.