In R studio results will sometimes stop being returned/printed to the console, I restart R studio and everything works again. For example, when I run the script below, before running it results print to the console fine, then I run it and I get nothing? What can I do other than restart R everytime? Thank you!
[Workspace loaded from ~/.RData]
> print(1+2)
[1] 3
> print('Everything works')
[1] "Everything works"
>
>
> for(i in 1:100){
+ if(i%%3==0 & i%%5==0){
+ print('fizzbuzz')
+ } else {
+ if (i%%3==0 & i%%5!=0){
+ print("fizz")
+ } else {
+ if (i%%3!=0 & i%%5==0) {
+ print("buzz")
+ } else {
+ (print(i))
+ }
+ }
+
+
+ print(1+2)
+ print('Everything works')