briatte / srqm

An introductory statistics course for social scientists, using Stata
https://f.briatte.org/teaching/quanti/
49 stars 17 forks source link

Package installation on restricted computers #16

Closed briatte closed 9 years ago

briatte commented 9 years ago

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:

Issue (1) might be easy:

  1. detect if the pwd either contains /Volumes/ (Mac) or does not contain c:\ (Win), or equivalent on Unix
  2. 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.

briatte commented 9 years ago

Alright. This ridiculous one-line change should fix the issue for good.