Typing the following line outputs an error: writeCbModel(model, 'xls').
The first part of the problem may be the following: in the writeCbModel() function, when defining the .xls extension, both .xls and .xlsx extensions are allowed. If none of them is written by the user in the dialog box, no extension is defined.
Moreover, we have found a second error: inside writeCbModel(), outmodel = model2xls(model, fileName, input.compSymbols, input.compNames) is called. The problem is that, in the way model2xls() is built, it does not permit an output variable.
I have made no changes in the functions because, as they are quite generalistic, they may be called by other functions in the toolbox and if I correct them, they may output errors in other tutorials.
I have used cobratoolbox version of July 14, 2017 in linux.
I hereby confirm that I have:
[X] Tried to solve the issue on my own
[X] Retried to run my code with the latest version of The COBRA Toolbox
[X] Checked that a similar issue has not already been opened
(Note: You may replace [] with [X] to check the box)
Typing the following line outputs an error: writeCbModel(model, 'xls').
The first part of the problem may be the following: in the writeCbModel() function, when defining the .xls extension, both .xls and .xlsx extensions are allowed. If none of them is written by the user in the dialog box, no extension is defined.
Moreover, we have found a second error: inside writeCbModel(), outmodel = model2xls(model, fileName, input.compSymbols, input.compNames) is called. The problem is that, in the way model2xls() is built, it does not permit an output variable.
I have made no changes in the functions because, as they are quite generalistic, they may be called by other functions in the toolbox and if I correct them, they may output errors in other tutorials.
I have used cobratoolbox version of July 14, 2017 in linux.
I hereby confirm that I have:
(Note: You may replace [] with [X] to check the box)