cmap / cmapR

Tools for manipulating annotated data matrices
BSD 3-Clause "New" or "Revised" License
85 stars 34 forks source link

Changing version during write_gct causes "unrecognised format specification '%'" #55

Closed gerardq675 closed 4 years ago

gerardq675 commented 4 years ago

I identified an error in io.R, that was preventing me from writing out a 1.2 gct file;

Error in sprintf("#1.%d\n%d\t%", ver, nr, nc) : unrecognised format specification '%'

Code: sprintf("#1.%d\n%d\t%", ver, nr, nc)

Is missing the d after the %:

sprintf("#1.%d\n%d\t%d", ver, nr, nc)

It works for me now, I hope this helps!

tnat1031 commented 4 years ago

good catch, thanks @gerardq675 ! I just pushed a fix and corresponding test