'My Terminal won’t run my Rscript. Keep getting output of “>quote"

I am trying to run an Rscript from my terminal to check that I made my code properly for class. Whenever I run my Rscript` using the command :

Rscript --vanilla -e ‘source(“file.R”)’ -e ‘print()’

I get the output of just

quote> 

I checked my code and my file and I should at least get something. When I run in RStudio my code produces something. Do you know what I can do to fix this? or any can suggestions on what I am doing wrong?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source