I am new to R and I get this problem when I am learning by myself. If anyone can help me with this I'll be grateful for that. Here's the problem I have: I can execute the code below on a R online editor successfully, but I cannot run it on my own R studio. When I run the strptime() code on my R studio I can only get [1] NA for y instead of getting the right format. The same case also happens when I use as.POSIXlt(). Btw my R version is 3.3.2, which is the latest one, and the online editor is 3.3.1 version. I am not sure whether it's a problem about version. Please tell me what should I do to solve this problem or is there any other substitution for this code. Thanks.
x <- "Dec 31 2016 12:34"
y <- strptime(x, "%B %d %Y %H:%M")
x
y