Open source software improves the reproducibility of scientific research. Because existing open source tools often do not offer dedicated support for longitudinal data collection on phones and computers, we built formr, a study framework that enables researchers to conduct both simple surveys and more intricate studies. With automated email and text message reminders according to any schedule, longitudinal and experience sampling studies become easy to implement. By integrating a web-based API for the statistical programming language R via OpenCPU, formr allows researchers to use a familiar programming language to enable complex features. These can range from adaptive testing to graphical and interactive feedback, to integration with non-survey data sources such as self-trackers or online social network data. Here, we showcase three studies created in formr: a study of couples with dyadic feedback; a longitudinal study over months including social networks, peer, and partner ratings; and a diary study with daily invitations by text message and email and extensive feedback on intraindividual patterns.