How to get real-time tweets uninterruptedly?



I have accessed Twitter Stream API using R and I am successfully getting Tweets according to my keyword criteria. But this is for limited time like 100 or 1000 or 10000 seconds, then it stops getting tweets and returns a .json file. I want to collect each and every tweet posted containing my key words. Can anyone please tell hardware/software requirements and the process!!
Many Thanks!


Is the R code maintaining a constant connection to the streaming API? I’m not familiar with the library in question.


Hii I am using these libraries

Its working fine but I want to get data starting from now onwards not missing any tweets