In the 1870s New Zealand's railway network was a small, fragmented system of light railway lines built in rough country where short, steep grades and tight curves were common. The Fairlie type of steam locomotive was well-suited to working in such conditions. In 1872, the first Fairlie locomotives arrived from England, the E class. Gradually the number of these double-ended engines grew to 10, and came to include the B class of 1874. There was still a need for orthodox engines with Fairlie manoeuvrability. The Avonside Engine Company of Bristol, England solved the problem by providing both the R and S classes of Single Fairlie engines; 18 of the former in 1878-79 and 7 of the latter in 1880-81. The R class locomotives were built at Avonside's Bristol factory and then shipped to New Zealand, with all entering service by early March 1880. The locomotives quickly earned a good reputation for speed and manoeuvrability. On a trial run, Charles Rous-Marten timed one as running from Upper Hutt to Wellington, a distance of 20 miles, in 32.5 minutes despite a number of short delays amounting to three minutes; one section of two miles was covered at a maximum speed of 53 miles per hour. They were allocated to depots across the country, and during their working life operated almost all types of services from premier passenger trains to shunting tasks. As built, they could carry 716 gallons of water, but to allow them to operate over extended distances, some were later fitted with 900 gallon side tanks. All were reboilered during their lives to raise the boiler pressure from 130 to 160 pounds per square inch.
Accidents
The locomotives were involved in a number of accidents. On 23 March 1907, R 28 was running the Boat Train to the wharf at Lyttelton to connect with the Wellington ferry when it ran the stop-block. The driving frame, wheels and engine took a dive into Lyttelton harbour, but because of the design, the rest of the locomotive remained on the wharf.
Retirement
The R class were gradually withdrawn from NZR service between 1919 and 1936. In July 1919, R 29 was sold to the Manawatu County Council and it worked on the Sanson Tramway through to its 1946 closure. Three more Rs went to the Manawatu County Council for use on the Sanson Tramway, two of which were given away free by NZR for use as spares. Another branch of government, the Public Works Department, acquired R 33 in August 1919. Five more were withdrawn in March 1922, and withdrawals continued throughout the 1920s, with only three surviving in NZR ownership into the 1930s. The last, R 271, was retired in March 1936 and dumped at Oamaru at the foreshore. A number, however, operated into the middle of the 20th century in private industrial use. Ironically due to its 1907 wharf accident, R 28 was sold to the Timaru Harbour Board in 1934. Until 1940, it was for shunting the Timaru wharves. It was later sold to Burkes Creek Colliery, Reefton for use on their mining railway. Laid up in 1948, R 28 was later placed in Reefton's town park for static preservation. In 2000 a working group took over care for the locomotive, where it will be moved into the restored Reefton engine shed for ultimate restoration to working order.