Closed VitorAguiar closed 9 years ago
Did you update any packages? Can you consistently reproduce the error?
I actually removed my julia, reinstalled it and restarted the computer. But I got the same error again.
I'm under Mac OS 10.10.2.
code:
using RDatasets
using DataFrames
iris = dataset("RDatasets", "iris")
We need a little more information that that. What version of RDatasets are you using? What version of Julia are you using?
Julia v0.3.6
I'm using the version of RDatasets installed by Pkg.add("RDatasets")
julia> Pkg.status()
2 required packages:
- DataFrames 0.6.1
- RDatasets 0.1.1 75fb2ce8 (dirty)
7 additional packages:
- ArrayViews 0.4.9
- Compat 0.3.2
- DataArrays 0.2.11
- GZip 0.2.13
- Reexport 0.0.2
- SortingAlgorithms 0.0.4
- StatsBase 0.6.12
@VitorAguiar I think you want just dataset("datasets","iris")
. RDatasets
is the Julia package. The R package is just called datasets
.
It is also possible to access such data with the RCall
package.
using RCall, DataFrames
iris = DataFrame("iris")
Thanks for noticing the error, @dmbates. Sounds like this isn't a bug then, but a confusion about how the function works.
Oh Yeah, I just noticed that! Sorry and thanks for making RDatasets.
I was using RDatasets yesterday without a problem, but today I'm getting this error (and I didn't update Julia or anything):
The correct location is actually
So I had to manually rename the directory:
Now it works!