On May 22nd, 1681, the Rev. Dr. Milles, rector of St. Olave’s, who is so often mentioned in the Diary, gave Pepys a certificate as to his attention to the services of the Church. It is not quite clear what was the occasion of the certificate, but probably the Diarist wished to have it ready in case of another attack upon him in respect to his tendency towards the Church of Rome.
Early in 1682 Pepys accompanied the Duke of York to Scotland, and narrowly escaped shipwreck by the way. Before letters could arrive in London to tell of his safety, the news came of the wreck of the Gloucester (the Duke’s ship), and of the loss of many lives. His friends’ anxiety was relieved by the arrival of a letter which Pepys wrote from Edinburgh to Hewer on May 8th, in which he detailed the particulars of the adventure. The Duke invited him to go on board the Gloucester frigate, but he preferred his own yacht (the Catherine), in which he had more room, and in consequence of his resolution he saved himself from the risk of drowning. On May 5th the frigate struck upon the sand called “The Lemon and Oar,” about sixteen leagues from the mouth of the Humber. This was caused by the carelessness of the pilot, to whom Pepys imputed “an obstinate overweening in opposition to the contrary opinions of Sir I. Berry, his master, mates, Col. Legg, the Duke himself, and several others, concurring unanimously in not being yet clear of the sands.” The Duke and his party escaped, but numbers were drowned in the sinking ship, and it is said that had the wreck occurred two hours earlier, and the accompanying yachts been at the distance they had previously been, not a soul would have escaped.
Pepys stayed in Edinburgh for a short time, and the Duke of York allowed him to be present at two councils. He then visited; with Colonel George Legge, some of the principal places in the neighbourhood, such as Stirling, Linlithgow, Hamilton, and Glasgow. The latter place he describes as “a very extraordinary town indeed for beauty and trade, much superior to any in Scotland.”40
Pepys had now been out of office for some time, but he was soon to have employment again. Tangier, which was acquired at the marriage of the King to Katharine of Braganza, had long been an incumbrance, and it was resolved at last to destroy the place. Colonel Legge (now Lord Dartmouth) was in August, 1683, constituted Captain-General of his Majesty’s forces in Africa, and Governor of Tangier, and sent with a fleet of about twenty sail to demolish and blow up the works, destroy the harbour, and bring home the garrison. Pepys received the King’s commands to accompany Lord Dartmouth on his expedition, but the latter’s instructions were secret, and Pepys therefore did not know what had been decided upon. He saw quite enough, however, to form a strong opinion of the uselessness of the place to England. Lord Dartmouth carried out his instructions thoroughly, and on March 29th, 1684, he and his party (including Pepys) arrived in the English Channel.41
The King himself now resumed the office of Lord High Admiral, and appointed Pepys Secretary of the Admiralty, with a salary of £500 per annum. In the Pepysian Library is the original patent, dated June 10th, 1684: “His Majesty’s Letters Patent for ye erecting the office of Secretary of ye Admiralty of England, and creating Samuel Pepys, Esq., first Secretary therein.” In this office the Diarist remained until the period of the Revolution, when his official career was concluded.
A very special honour was conferred upon Pepys in this year, when he was elected President of the Royal Society in succession to Sir Cyril Wyche, and he held the office for two years. Pepys had been admitted a fellow of the society on February 15th, 1664–65, and from Birch’s History we find that in the following month he made a statement to the society:—
“Mr. Pepys gave an account of what information he had received from the Master of the Jersey ship which had been in company with Major Holmes in the Guinea voyage concerning the pendulum watches (March 15th, 1664–5).”42
The records of the society show that he frequently made himself useful by obtaining such information as might be required in his department. After he retired from the presidency, he continued to entertain some of the most distinguished members of the society on Saturday evenings at his house in York Buildings. Evelyn expressed the strongest regret when it was necessary to discontinue these meetings on account of the infirmities of the host.
In 1685 Charles II died, and was succeeded by James, Duke of York. From his intimate association with James it might have been supposed that a long period of official life was still before Pepys, but the new king’s bigotry and incapacity soon made this a practical impossibility. At the coronation of James II Pepys marched in the procession immediately behind the king’s canopy, as one of the sixteen barons of