thanks @mmuetzel that did the trick (when I included all three folders to the load path).
But if I remove private from PKG_ADD and PKG_DEL then the functions in private are not found (e.g. by bootci) when I try to run it even though private is a subdirectory in the same folder as bootci and the other main functions. Weird because normally it is visible to these functions (only) (seed2state is a function in the private folder).
octave:201> bootci(10000,@smoothmedian,randn(10,1))
error: 'seed2state' undefined near line 158, column 158
error: called from
boot1 at line 158 column 5
ibootci at line 949 column 21
bootci at line 291 column 21
After installation, the files and folders are installed:
octave:197> ls -l /Users/andrewcpenn/octave/statistics-bootstrap-2.8.8/
total 336
-rw-r--r-- 1 andrewcpenn staff 599 Dec 16 15:39 PKG_ADD
-rw-r--r-- 1 andrewcpenn staff 504 Dec 16 15:39 PKG_DEL
-rw-r--r-- 1 andrewcpenn staff 11989 Dec 16 15:39 bootci.m
-rw-r--r-- 1 andrewcpenn staff 8401 Dec 16 15:39 bootmode.m
-rw-r--r-- 1 andrewcpenn staff 2526 Dec 16 15:39 bootperm.m
-rw-r--r-- 1 andrewcpenn staff 2435 Dec 16 15:39 bootperm2.m
-rw-r--r-- 1 andrewcpenn staff 5045 Dec 16 15:39 bootstrp.m
-rw-r--r-- 1 andrewcpenn staff 42750 Dec 16 15:39 doc-cache
drwxr-xr-x 15 andrewcpenn staff 480 Dec 16 15:39 helper
-rw-r--r-- 1 andrewcpenn staff 46633 Dec 16 15:39 ibootci.m
-rw-r--r-- 1 andrewcpenn staff 4347 Dec 16 15:39 ibootp.m
-rw-r--r-- 1 andrewcpenn staff 2967 Dec 16 15:39 iboottest.m
-rw-r--r-- 1 andrewcpenn staff 9075 Dec 16 15:39 iboottest2.m
drwxr-xr-x 5 andrewcpenn staff 160 Dec 16 15:39 packinfo
drwxr-xr-x 5 andrewcpenn staff 160 Dec 16 15:39 param
-rw-r--r-- 1 andrewcpenn staff 2134 Dec 16 15:39 plotboot.m
drwxr-xr-x 15 andrewcpenn staff 480 Dec 16 15:39 private
And loading the package adds the (other) subfolders to the path…
octave:198> pkg load statistics-bootstrap
ans = /Users/andrewcpenn/octave/statistics-bootstrap-2.8.8/helper
ans = /Users/andrewcpenn/octave/statistics-bootstrap-2.8.8/param
And running help on one of the main functions says it’s in the directory (where the private folder is…
octave:199> help bootci
'bootci' is a function from the file /Users/andrewcpenn/octave/statistics-bootstrap-2.8.8/bootci.m
The functions are indeed in the private folder…
octave:200> ls -l /Users/andrewcpenn/octave/statistics-bootstrap-2.8.8/private
total 112
-rw-r--r-- 1 andrewcpenn staff 688 Dec 16 15:39 BC.m
-rw-r--r-- 1 andrewcpenn staff 1310 Dec 16 15:39 BCa.m
-rw-r--r-- 1 andrewcpenn staff 518 Dec 16 15:39 autocorr.m
-rw-r--r-- 1 andrewcpenn staff 5913 Dec 16 15:39 boot1.m
-rw-r--r-- 1 andrewcpenn staff 743 Dec 16 15:39 bootstud.m
-rw-r--r-- 1 andrewcpenn staff 1204 Dec 16 15:39 clustmean.m
-rw-r--r-- 1 andrewcpenn staff 749 Dec 16 15:39 empcdf.m
-rw-r--r-- 1 andrewcpenn staff 751 Dec 16 15:39 isparallel.m
-rw-r--r-- 1 andrewcpenn staff 3339 Dec 16 15:39 jack.m
-rw-r--r-- 1 andrewcpenn staff 303 Dec 16 15:39 nanfun.m
-rw-r--r-- 1 andrewcpenn staff 454 Dec 16 15:39 seed2state.m
-rw-r--r-- 1 andrewcpenn staff 1134 Dec 16 15:39 sse_calc.m
-rw-r--r-- 1 andrewcpenn staff 879 Dec 16 15:39 unitmeans.m
So I’m a bit confused why bootci cannot see functions in the private folder (when normally it doesn’t have this issue) (Just to confirm though, running help on functions in helper or param folders does indicate that they are accessible by the user so that is working)