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

joyplot error -invalid syntax -- update to fix levelsof not returning r(r) in older Stata versions. #14

Open
Stata-ww opened this issue Apr 9, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Stata-ww
Copy link

Stata-ww commented Apr 9, 2023

use "OWID_data.dta", clear

.
. keep if group10==1
(131,816 observations deleted)

.
. keep country date new_cases

.
. joyplot new_cases date if date > 22460, over(country)
invalid syntax

@asjadnaqvi
Copy link
Owner

I just checked and it's working fine. I would suggest updating the packages:

ssc install joyplot, replace
ssc install palettes, replace
ssc install colrspace, replace

and try again.

@Stata-ww
Copy link
Author

Stata-ww commented Apr 9, 2023

Still reporting an error.

@asjadnaqvi
Copy link
Owner

Which Stata version? and when you type which joyplot does it say v1.61?

@Stata-ww
Copy link
Author

Stata-ww commented Apr 9, 2023

stata15

which joyplot.ado
E:\stata\stata15/ado\myplus\j\joyplot.ado
*! Joyplot v1.61 (01 Mar 2023)
*! Asjad Naqvi ([email protected])

@Stata-ww
Copy link
Author

Stata-ww commented Apr 9, 2023

I've found the reason: levelsof in joyplot.ado is the latest version, but I'm an older version and won't return the staging: r(r). I added "qui tab `over'" in joyplot.ado and it was up and running. Thank you for your reply. My English is not very good, there are some small mistakes in the reply, please forgive me. thank you。3Q。

@asjadnaqvi
Copy link
Owner

Thank you so much for finding this! I didn't realize that levelsof didn't return r(r) in older versions. This is a major issue for backward compatibility in most of the packages that I will fix over time.

@asjadnaqvi asjadnaqvi added the bug Something isn't working label Apr 9, 2023
@asjadnaqvi asjadnaqvi self-assigned this Apr 9, 2023
@asjadnaqvi asjadnaqvi changed the title joyplot error -invalid syntax joyplot error -invalid syntax -- update to fix levelsof not returning r(r) in older Stata versions. Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants