'How do I fix the multibyte character issue?

I have the following code in R. However, I am getting the following alert:

Error: invalid multibyte character in parser at line 1
Execution halted. 
                                          

How can i fix this issue?

My code is:

library(ggplot2)
library(stats4)   
vc = c(10.2, 9.7, 10.1, 10.3, 10.1, 9.8, 9.9, 10.4, 10.3, 9.8)
t.test(vc, alternative=“two.sided”, mu=10)
t.test(vc, mu=10, conf.level=0.99)
r


Sources

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

Source: Stack Overflow

Solution Source