asardaes / dtwclust

R Package for Time Series Clustering Along with Optimizations for DTW
https://cran.r-project.org/package=dtwclust
GNU General Public License v3.0
252 stars 29 forks source link

dtwclust command not find #53

Closed 0310-mich closed 3 years ago

0310-mich commented 3 years ago

Hi there,

I have been trying to use the "dtwclust" package but keep getting the error that RStudio can't find the function dtwclust despite I have all the last R, method, proxy, and dtw updates. image

Thanks

asardaes commented 3 years ago

Hello, are you sure the package is loaded with library(dtwclust)?

0310-mich commented 3 years ago

Hi asardaes, Yes I am sure it is

asardaes commented 3 years ago

I vaguely remember a similar issue some years ago, but I think the R installation was to blame back then, not sure. Try adding the namespace prefix explicitly: dtwclust::dtwclust(...)

0310-mich commented 3 years ago

Hey there,

Yah I also did that, I also re-install R-Studio and every recommended package but nothing change, it still doesn't recognize it. image Despite that some other functions of your wonderful package work, that one is inexistant. Is it working on your computer?

Thanks,

Guillaume

asardaes commented 3 years ago

Strange, what do you see if you run the following?

library(dtwclust) 
sessionInfo()

Also, do you see the function with 3 colons? I.e. dtwclust:::

0310-mich commented 3 years ago

Hey there,

First of all, thanks a lot for spending time on my issue!

When I run sessionInfo(), I got the following: image And when running 3 colons, I am still missing the dtwclust fct. image

asardaes commented 3 years ago

Well this is embarrassing. Sorry, I haven't worked with R for a while now. The dtwclust package doesn't have a dtwclust function, that's been gone for a long time now, the main function is tsclust. Are you sure you're referring to the latest documentation/vignette? The ones on CRAN.

0310-mich commented 3 years ago

Yes, I am, but thanks a lot already man! Your package will still be really helpful in my studies!

asardaes commented 3 years ago

No problem :+1: