Shamasastry was born in 1868 in Rudrapatna, a village on the banks of the Kaveri river in what is today the state of Karnataka. His early education started in Rudrapatna. He later went to the Mysore Samskruta Patasala and obtained his Sanskrit Vidwat degree with high honours. In 1889, Madras University awarded him a BA degree. Impressed by his ability in classical Sanskrit, Sir Sheshadri Iyer, the then Dewan of Mysore Province, nurtured and helped Shamasastry, making it possible for him to join the Government Oriental Library in Mysore as librarian. He "had mastered Vedas, Vedanga, classical Sanskrit, Prakrit, English, Kannada, German, French and other languages."
The Oriental Research Institute was established as the Mysore Oriental Library in 1891. It housed thousands of Sanskrit palm-leaf manuscripts. As librarian, Shamasastry examined these fragile manuscripts daily to determine and catalogue their contents. In 1905, Shamasastry discovered the Arthashastra among a heap of manuscripts. He transcribed, edited and published the Sanskrit edition in 1909. He proceeded to translate it into English, publishing it in 1915. The manuscript was in the Early Grantha script. Other copies of the Arthashastra were discovered later in other parts of India. It was one of the manuscripts in the library that had been handed over by 'a pandit of the Tanjore district' to the Oriental Library. Until this discovery, the Arthashastra was known only through references to it in works, including those by Dandin, Bana, Vishnusarma, Mallinathasuri, Megasthenes, as well as others. This discovery was "an epoch-making event in the history of the study of ancient Indian polity". It altered the perception of ancient India and changed the course of history studies, notably the false belief of European scholars at the time that Indians learnt the art of administration from the Greeks. The book was translated into French, German and many other languages.
Other work
He started his career as Librarian, Government Mysore Oriental Library. From 1912–1918, he worked as Principal at the Sri Chamarajendra Samskrita Maha Patashala in Bengaluru. In the year 1918, he returned to the Government Mysore Oriental library and joined as Curator and later Director of Archeological Researches in Mysore, where he would continue to work until his retirement in 1929. Apart from discovering Kautilya's Arthashastra, he pursued his research in the Vedic era and Vedic astronomy, making valuable contributions to Vedic studies. The following are among Shamasastry's works:
Vedangajyautishya – A Vedic Manual of Astronomy, 8th Century B.C.
Drapsa: The Vedic Cycle of Eclipses – a key to unlock the treasures of the Vedas.
Eclipse-Cult in the Vedas, Bible, and Koran – A supplement to the Drapsa. It is this Cult that has given rise to epic and puranic tales in India. The mathematical aspect of eclipse-cycles is treated at great length and eclipse-tables have been appended. Dr. E. Abegg, Professor, University of Zurich, Switzerland, stated- 'I see with admiration that R Shamasatry, a thorough scholar in the difficult problems of Vedic Astronomy and Calendar, things of which European Indianists have very rarely a true Knowledge'
Gavam Ayana- The Vedic Era- is an exposition of a forgotten sacrificial calendar of the Vedic poets and includes an account of the origin of the Yugas.
Evolution of Indian Polity. This book is a compilation of Ten lectures delivered in Calcutta University. Sir Asutosh Mookerjee, Vice-chancellor of Calcutta University, personally invited Sastry to deliver these discourses. In this work, the ancient Indian administrative systems and various levels of administrative set-up are critically examined, on the basis of Vedas, legends, Arthashastra, Mahabharata, Jainagama works etc.
The Origin of Devanagari Alphabets.
All his works received great attention from many great Scholars around the world, particularly European Indianists. R. Shamasastry also edited many Kannada Texts. Some of the important works he published are:
Rudrabhaṭṭa's Jagannāthavijaya
Nayasena's Dharmāmṛta
Lingannakavi's Keḷadinṛpavijaya
Govindavaidya's Kaṇṭhīravanarasarajavijaya
The Virāṭa Parvan of Kumāravyāsa's Karnataka Mahābhārata
The Udyoga Parvan of Kumārayvāsa's Karnataka Mahābhārata
An often-told anecdote involves the visit of the then-king of Mysore, Krishna Raja Wadiyar IV, to Germany. When introduced as the king of Mysore, he was asked by the vice-chancellor of a German university whether he was from the Mysore of Shamasastry. On his return, the king honoured Shamasastry and said "In Mysore we are the Maharaja and you are our subject, but in Germany, you are the master and people recognise us by your name and fame."
Later life
Shamasastry continued his research work on Indological problems. He later became the curator of the institute. As Director of Archaeology of Mysore State, he discovered many inscriptions on stone and copper plates. His house Asutosh, in the Chamundipura locality of Mysore, was named after Sir Asutosh Mookerjee.