Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion SPF/SPFinit.sas
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,7 @@ des = 'Macro to install SAS package, version 20250729. Run %%installPackage() fo
%put # #;
%put # - `version=` Indicates which historical version of a package to install. #;
%put # Historical version are currently available only if `mirror=0` is set. #;
%put # or when `github` is specified. #;
%put # Default value is null which means "install the latest". #;
%put # When there are multiple packages to install the `version` variable #;
%put # is scan sequentially. #;
Expand Down Expand Up @@ -1072,7 +1073,7 @@ des = 'Macro to install SAS package, version 20250729. Run %%installPackage() fo
%end;
%else
%do;
%if %superq(mirror) IN (0 3 4) %then /* SASPAC or PharmaForest or an arbitrary GitHub repo */
%if %superq(mirror) IN (0 3) %then /* SASPAC or PharmaForest */
%do;
%let packageSubDir = %sysfunc(lowcase(&packageName.))/raw/main/;

Expand All @@ -1082,6 +1083,21 @@ des = 'Macro to install SAS package, version 20250729. Run %%installPackage() fo
%let packageSubDir = %sysfunc(lowcase(&packageName.))/raw/&vers./;
%end;
%end;
%else %if 4 = %superq(mirror) %then /* An arbitrary GitHub repo */
%do;
%let packageSubDir = %sysfunc(lowcase(&packageName.))/raw/main/;

filename _release url "&sourcePath./%sysfunc(lowcase(&packageName.))/releases/download/&vers./%sysfunc(lowcase(&packageName.)).zip" ;
%if %superq(vers) ne and %sysfunc(fexist(_release))=1 %then
%do;
%let packageSubDir = %sysfunc(lowcase(&packageName.))/releases/download/&vers./;
%end;
%else %if %superq(vers) ne %then
%do;
%let packageSubDir = %sysfunc(lowcase(&packageName.))/raw/&vers./;
%end;
filename _release clear ;
%end;
%else
%do;
%if %superq(mirror) NE 0 %then
Expand Down