如图所示,尝试if代码始终不成功:
x <- 5
if (x>0){
print(“abc”)
} else {
print(“def”)
}
运行结果是:
> x <- 5
> if (x>0){
+ print(“abc”)
Error: unexpected input in:
"if (x>0){
print(?
> } else {
Error: unexpected '}' in "}"
> print(“def”)
Error: unexpected input in " print(?
> }
Error: unexpected '}' in "}"
不知道是哪里配置错了还是什么的…
多谢!