'Error in converting Matlab code to R code using tidyverse and matconv

I am using a piece of R code which was provided as a response to the previous question Using tidyverse and matconv to convert Matlab code to R code. The code successfully convert the first m-file in the working directory of R. And then it throws an error message:

Error in mat2r(inMat = .x, pathOutR = sub("m$", "R", .x), funcConverters = NULL, : Please supply a '.m' file

Can someone please help to resolve the error? Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source