Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

robyn_chain function not found error #959

Open
shuvayan opened this issue Apr 24, 2024 · 4 comments
Open

robyn_chain function not found error #959

shuvayan opened this issue Apr 24, 2024 · 4 comments
Assignees

Comments

@shuvayan
Copy link

Project Robyn

Describe issue

Describe your issue and provide warnings and error messages.
The function robyn_refresh utilizes robyn_chain internally , which seems to have been deprecated/removed in the latest version.

Below is the error message :

Error in robyn_chain(json_file) : could not find function "robyn_chain"

Provide reproducible example

Issues are often related to custom input data that is difficult to debug without. If necessary, please modify your data to mask real values and share a dataset that is able to reproduce the issue. Please also share your model configuration and exported JSON files if available.

Environment & Robyn version

Make sure you're using the latest Robyn version before you post an issue.

  • Check and share Robyn version: packageVersion("Robyn")
  • R version (Please, check and share: sessionInfo() or R.version$version.string)

All the packages are being run as the latest version in Windows.

Can someone help me with this or point me towards the resolution

@shuvayan
Copy link
Author

Screenshot 2024-04-24 202624

@gufengzhou gufengzhou self-assigned this Apr 25, 2024
@gufengzhou
Copy link
Contributor

The function is not deprecated. You can see it here. Please check if you're using the latest GitHub version and retry.

@shuvayan
Copy link
Author

shuvayan commented Apr 25, 2024

My apologies, it was because of the latest version not being used. However, now it says the json file is not found :

image

I think it is because the function robyn_chain is not being able to locate the file correctly, because
file <- paste0("RobynModel-", json_new$InputCollect$refreshSourceID, ".json")
returns NULL.
The InputCollect object doesn't have a refreshSourceID in my case, is that because I am doing something incorrectly or has something changed in the library?
Splitting hairs!!

BTW, thanks for the awesome library!!

@gufengzhou
Copy link
Contributor

hm this is strange. I just tried refresh on the demo data and can't reproduce your error. In your screenshot, the model recreation is successful using the json. So it's strange that it misses the second time. Let's see if Bernardo's fix on your other issue can solve this first?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants