2%> Return a scalar MATLAB
string containing the latest
3%> available ParaMonte MATLAB
version newer than the
4%> existing
version on the current system.
6%> \param[in] silent : The input scalar MATLAB logical.<br>
7%> If ``
true``, all descriptive messages on
8%> the MATLAB command line will be suppressed.<br>
9%> (**optional**,
default = ``
false``)
12%> ``str`` : The output scalar MATLAB
string containing the
13%> latest available ParaMonte MATLAB
version newer
14%> than the existing
version on the current system.<br>
15%> The output ``str`` will be set to empty
string ``
""``
16%>
if there is no newer
version or the function fails.<br>
21%> str = pm.lib.update.version()
22%> str = pm.lib.update.version(silent)
27%> \include{lineno} example/
lib/update/
version/main.m
29%> \include{lineno} example/
lib/update/
version/main.out.m
34%> \JoshuaOsborne, May 21 2024, 7:57 PM, University of Texas at Arlington<br>
35%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
36%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute
for Computational Engineering and Sciences (ICES), UT Austin<br>
44 versionLink =
"https://raw.githubusercontent.com/cdslaborg/paramonte/main/src/matlab/VERSION.md";
46 versionFileLineList = strsplit(webread(versionLink), newline);
47 str = string(versionFileLineList{1});
53 +
string(me.identifier) +
" : " +
string(me.message) + newline ...
54 +
"Failed to fetch the latest version number from the weblink:" + newline ...
56 + pm.io.tab + pm.web.href(versionLink) + newline ...
58 +
"Ensure MATLAB has access to the internet." + newline ...
59 +
"Otherwise, the structure of the ParaMonte library project on GitHub might have changed." + newline ...
60 +
"The current ParaMonte library on your system is " + pm.lib.version() + newline ...
61 +
"You can check for any newer package releases on the ParaMonte GitHub repository release page:" + newline ...
63 + pm.io.tab + pm.web.href(
weblinks.github.releases.url) + newline ...
function version(in silent)
Return a scalar MATLAB string containing the latest available ParaMonte MATLAB version newer than the...
function lib()
Return a scalar MATLAB string containing the path to the lib directory of the ParaMonte library packa...
function weblinks()
Return a structure containing tree of weblinks for the ParaMonte MATLAB library source file and docum...