A Palmyra woman who allegedly drove in the wrong direction on Interstate 95 early Friday has been charged with drunken driving after nearly crashing head-on into the cruiser of a Kennebec County sheriff’s deputy.

Miranda J. Doherty, 27, is charged with operating under the influence, failing to stop for an officer and driving to endanger, said interim Sheriff Ryan Reardon.

Doherty was held overnight at the Kennebec County jail in lieu of $1,200 cash bail.

Deputy Brittany Johnson was driving north shortly before 2 a.m. Friday on Interstate 95, en route to the site of a burglary complaint in Clinton, when she saw headlights coming toward her cruiser as she neared the first Waterville exit. Reardon said Johnson pulled her cruiser to the side to avoid a head-on crash with the pickup.

“If my reaction had not been as quick as it was, the operator of the truck would have hit me head-on,” Reardon said, reading from Johnson’s report.

Johnson turned around and began chasing Doherty’s white GMC with the cruiser’s lights and sirens activated. Reardon said the pursuit continued south in the northbound lane, with speeds hovering around 45 mph. Doherty at one point activated the truck’s right signal switch, as if she intended to pull over, but continued to drive south, Reardon said.

Sgt. Michel Dutil of the sheriff’s office eventually joined the pursuit. Johnson drove around Doherty’s truck to get in front of it and box it in to bring it to a stop, but Doherty pulled to the side before the deputies could complete the maneuver, Reardon said.

Doherty was finally stopped on the interstate. She told deputies she had been at a banquet in Oakland where she drank “two beers and a gin and tonic,” Reardon said.

Johnson noticed Doherty’s eyes were glassy and her speech was slurred, Reardon said. Doherty, who was taken into custody after failing a field sobriety test, registered a blood alcohol level of 0.15, nearly twice the legal limit.

Reardon said he was unsure where Doherty was driving, but assumes she believed she was in Palmyra, northeast of Oakland.

“We’re lucky we didn’t lose an officer,” Reardon said. “It could have been terrible.”