dynverse / dyneval

Metrics to compare two or more trajectories ⚖
2 stars 2 forks source link

Error: 'calculate_mapping' is not an exported object from 'namespace:dyneval' #55

Closed QidiFeng closed 5 years ago

QidiFeng commented 5 years ago

Hi, dyneval group,

I failed to use calculate_mapping under dyneval package.

dyneval::calculate_mapping Error: 'calculate_mapping' is not an exported object from 'namespace:dyneval'

I did load dyneval library, and "?calculate_mapping" did help to show the documentation. But it shows no such function every time I used it.

Functions with the same problem including 'calculate_mapping_branches', 'calculate_metrics', and 'calculate_position_predict'.

Could you please help to find the problem? Thank you very much!

Best, Qidi

rcannood commented 5 years ago

Hi Qidi!

I think in most cases, it's recommended to use calculate_metrics() instead (which is an interface for all of the metrics). The function was not exported, but you could have accessed it with dyneval:::calculate_mapping(). In the @devel branch of dyneval, I now exported the functions you mentioned. Can you confirm that the devel branch solves your problem?

Robrecht

QidiFeng commented 5 years ago

Hi Robrecht,

Thank you very much for your reply. I think calculate_metrics() did solve my problem. But I don't know how to use the devel branch of dyneval. I failed to find a documentation of devel.

Besides, when I tried to use metric_id 'him', it reported that 'Error in loadNamespace(name) : there is no package called ‘netdist’'. And I searched package 'netdist' by google, but still don't know how to install it. So how do I suppose to solve this problem?

Thanks again for your help!

Best, Qidi

rcannood commented 5 years ago

Netdist is indeed not installed by default. In order to install it, please run devtools::install_github("dynverse/netdist"). I'll look for a more permanent solution sometime soon.

QidiFeng commented 5 years ago

This command did help! The Netdist could work now. Thank you very much!

Best, Qidi

On Thu, Aug 1, 2019 at 5:38 PM Robrecht Cannoodt notifications@github.com wrote:

Netdist is indeed not installed by default. In order to install it, please run devtools::install_github("dynverse/netdist"). I'll look for a more permanent solution sometime soon.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dynverse/dyneval/issues/55?email_source=notifications&email_token=AJ6PSOH476XEKG2RXUVUXYTQCNJUJA5CNFSM4IIVDBJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3L63NQ#issuecomment-517467574, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ6PSOGXOM73BKVMWAHYF4DQCNJUJANCNFSM4IIVDBJA .