Red Dwarf: Infinity Welcomes Careful Drivers, 1992 ed, Grant Naylor
Somewhere there exists a website detailing, elaborately, how events in the series and events in the novel can be reconciled. I can almost certainly guarantee that.
The notion that “continuity” in Red Dwarf is even less credible than it is in Doctor Who will have escaped the author. Of this I am also positive.