Commit b0e8d25
committed
Commit the executable path before the optional exposure work
Removing the early self$exe_file(exe) left compile_standalone's call to
expose_stan_functions() ahead of the assignment in the tail, so a
failure there installed the executable and then returned an object that
could not find it. A later $compile() would find that executable up to
date, take the adoption branch because exe_file_ was still empty, and
set existing_exe, after which $expose_functions() refused permanently.
Both optional exposures now run after every field describing the
installed executable is committed.
The cpp_options mismatch warning moves after the no-op branch records
cpp_options_ and exe_file_, for the reason the leftover-backup warning
is raised last: under options(warn = 2) it is an error, and raising it
earlier unwound with the object half-updated.
That warning, and the decision to record the requested options at all,
now key off whether options are available rather than whether they
arrived with this call. Options held from cmdstan_model(compile = FALSE)
are equally the caller's intent, and were being discarded; the
supplied-ness flag remains for the narrower question of whether a header
conflict occurred within a single call.
unlink() glob-expands by default, unlike the file.remove() it replaced,
so a model directory containing [, ], * or ? matched nothing and
reported success while a full copy of the previous executable stayed on
disk. Both call sites pass expand = FALSE.1 parent 3cbcc59 commit b0e8d25
3 files changed
Lines changed: 41 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | | - | |
79 | | - | |
| 78 | + | |
| 79 | + | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
| 90 | + | |
| 91 | + | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
621 | 625 | | |
622 | 626 | | |
623 | 627 | | |
| |||
726 | 730 | | |
727 | 731 | | |
728 | 732 | | |
729 | | - | |
| 733 | + | |
730 | 734 | | |
731 | 735 | | |
732 | 736 | | |
733 | 737 | | |
734 | 738 | | |
735 | | - | |
| 739 | + | |
736 | 740 | | |
737 | 741 | | |
738 | 742 | | |
| |||
745 | 749 | | |
746 | 750 | | |
747 | 751 | | |
748 | | - | |
| 752 | + | |
| 753 | + | |
749 | 754 | | |
750 | 755 | | |
751 | 756 | | |
752 | 757 | | |
753 | 758 | | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
| 759 | + | |
| 760 | + | |
762 | 761 | | |
763 | 762 | | |
764 | 763 | | |
| |||
775 | 774 | | |
776 | 775 | | |
777 | 776 | | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
778 | 788 | | |
779 | 789 | | |
780 | 790 | | |
| |||
918 | 928 | | |
919 | 929 | | |
920 | 930 | | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | 931 | | |
926 | 932 | | |
927 | 933 | | |
| |||
932 | 938 | | |
933 | 939 | | |
934 | 940 | | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
935 | 948 | | |
936 | 949 | | |
937 | 950 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
| 379 | + | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| |||
0 commit comments