Assessing potential output and the output gap is essential for policy-making and fiscal surveillance. The European Commission proposes a production function methodology that involves the estimation of two classes of Gaussian state space models. This paper presents the R package RGAP which...