error; unexpected symbol

Currently working on an exam and need help with an error.
Im supposed to import exchangerates from the norwegian bank with an api with the following code;

'NBdata <- read.table(“url”, header = TRUE, sep = “;” , dec = “,”)

but everytime i try i get this message in the log;
Error: unexpected symbol in "NBdata <- read.table(\u201curl"

Backslashes are used to escape characters in R. Can you paste your full code instead of only "url"? If so, we might spot the exact point, but looking at the error, you have some backslash symbols where there shouldn't be any of them. To write paths in R, use forward slash, like "this/is/my/filepath" instead of "\this\is\my\file\path"

Kind regards

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.