Intalled readODS with RStudio, but R could not find function "read_ods"

I'm a newbie to R and RStudio.

After adding xml2, I successfully intalled readODS with the last messages saying

* DONE (readODS)



Error in .helpForCall(topicExpr, parent.frame()) : 
  no methods for ‘read_ods’ and no documentation for it as a function

And my attempt to use it as described in
generates this error message:

Error in read_ods(path = "/home/jim/Downloads/Pajek_Data/", sheet = 1,  : 
  could not find function "read_ods"

R version 3.4.4 (2018-03-15), RStudio Version 1.2.1335

I am baffled.
The one suspect I have is that I have both a 3.0 and a 3.4 directory. But I don't know how that could make a difference.

Did you precede your call to read_ods() with


I have never used that package but I suspect you need to pass the complete path to the file.

read_ods(path = "/home/jim/Downloads/Pajek_Data/SomeFileName.ods", sheet = 1)
1 Like

That was the solution. Thank you.
The following worked:

read_ods(path = "/home/jim/Downloads/Pajek_Data/Scotland3DChart.ods", sheet = 1, 
col_names = TRUE, col_types = NULL, na = "", skip = 0, formula_as_formula = FALSE,
range = NULL)
read.ods(file = "/home/jim/Downloads/Pajek_Data/Scotland3DChart.ods", sheet = NULL, formulaAsFormula = FALSE)

Now the next script fails silently so I have to look at it awhile....

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