(Reuters) - U.S. Attorney General William Barr is considering resigning over President Donald Trump’s tweets about Justice Department investigations, a source familiar with the situation told Reuters, while the department said he was not leaving.

“The Attorney General has no plans to resign,” Justice Department spokeswoman Kerri Kupec said in a post on Twitter late Tuesday night.

The Washington Post separately reported on Tuesday that Barr has told people close to Trump about his concerns, but it was not immediately clear if Barr had spoken to the president directly.

“He has his limits,” the newspaper quoted one person familiar with Barr’s thinking as saying.

Barr may be sharing his position with people close to Trump in hopes the president gets the message and stops tweeting about the Justice Department’s criminal investigations, the Post added.

The White House did not respond to a request for comment.

Trump earlier on Tuesday said he had total confidence in Barr, who last week told ABC News in an interview that Trump’s tweeting habit had made it impossible for him to do his job.

Slideshow ( 3 images )

“I do make his job harder ... I do agree with that,” Trump told reporters before boarding Air Force One Tuesday afternoon. “The attorney general is a man with great integrity.”

Last week senior Justice Department officials withdrew an earlier sentencing recommendation for longtime Trump friend Roger Stone, who was found guilty in November of seven counts of lying to Congress, prompting upheaval within the department.

Over the weekend, more than 1,000 former department officials called for Barr to resign in an open letter. The signatories grew to more than 2,400 by Wednesday morning.

Trump has used Twitter to attack the four prosecutors who had argued the Stone case as well as the judge presiding over it.

“Social media for me has been very important because it gives me a voice,” he told reporters on Tuesday.

Barr told ABC on Thursday that he could not do his job “with a constant background commentary” and that it was “time to stop the tweeting about Department of Justice criminal cases.”