Minor bug fixes and improvements to documentation. The primary goal of these changes is to improve user experience, primarily achieved by adding helpful error messages for previously unexpected inputs.
The following changes were made:
Updated GitHub actions. The biggest difference is changing r-lib/actions/setup-r@v2.3.1 -> r-lib/actions/setup-r@v2; the version 2.3.1 is now outdated and does not work properly. I changed this to version v2 because this is the "rolling" version, meaning that it always represents the latest version of this action, other than a potential major or breaking update. This change, along with the other changes to the GitHub Actions, is in line with changes to these files in the pomp and spatPomp packages.
Added a type check for the params argument of the pfilter function in order to throw more user friendly error.
A more user friendly error is thrown when the user specifies a parameter as both shared and unit specific in the mif2 function.
Added a match.arg call in mif2.internal; this will allow the default option for the cooling.type argument in mif2 to no longer throw an error, and mimics the behavior of the mif2 function in the pomp package. This also results in removing an unintended and difficult to interpret error message.
The pParams function no longer changes the order of the unit specific parameter names; this was causing an error because the barycentric parameter transformation requires that the parameters are adjacent to one another in the parameter vector.
Improved documentation for panel_logmeanexp, based on comments from students who have tried using this function and didn't think it provided enough detail.
More robust input checking for the pfilter function with user friendly error messages.
Minor bug fixes and improvements to documentation. The primary goal of these changes is to improve user experience, primarily achieved by adding helpful error messages for previously unexpected inputs.
The following changes were made:
r-lib/actions/setup-r@v2.3.1 -> r-lib/actions/setup-r@v2
; the version2.3.1
is now outdated and does not work properly. I changed this to versionv2
because this is the "rolling" version, meaning that it always represents the latest version of this action, other than a potential major or breaking update. This change, along with the other changes to the GitHub Actions, is in line with changes to these files in the pomp and spatPomp packages.pfilter
function in order to throw more user friendly error.mif2
function.match.arg
call inmif2.internal
; this will allow the default option for thecooling.type
argument inmif2
to no longer throw an error, and mimics the behavior of themif2
function in thepomp
package. This also results in removing an unintended and difficult to interpret error message.pParams
function no longer changes the order of the unit specific parameter names; this was causing an error because the barycentric parameter transformation requires that the parameters are adjacent to one another in the parameter vector.panel_logmeanexp
, based on comments from students who have tried using this function and didn't think it provided enough detail.pfilter
function with user friendly error messages.