Entering edit mode
Hi, I have a R script named 'filo.R' like that:
suppressMessages(library(msa))
filepath <-"C:/r/seq.txt"
mySeqs <- readDNAStringSet(filepath)
msa(mySeqs)
If I run this with RGui.exe there is no problem, but if I try to execute through a BAT file (windows 10) I have an error:
bat file: "C:\Program Files\R\R-3.5.2\bin\Rscript.exe" "C:\r\filo.R"
error: ERROR: Cannot open output file [internalRsequence.aln] Error in convertAlnRows(result$msa, type) : There is an invalid file! Calls: msa->msaFun->convertAlnRows EjecuciĆ³n interrumpida
It seems that there is a problem writing the temporal file (in c:/r/ folder with all privileges)
If I use msa(mySeqs, method="ClustalOmega") instead method="ClustalW", the error does not appear.
Another clue: If I double-click in BAT file run without problem, but if I run BAT file through another program fails.