-
Notifications
You must be signed in to change notification settings - Fork 40
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
svglite does not play nice with xts #126
Comments
This seems to be based on the CRAN version of svglite... The dev version includes a lot of rewrites, so can you check if the issue persists there? |
yes, it's still there My function for a corrected svg-file is |
then I have a corrected svg like this |
According to that you are still using the CRAN version of svglite? |
You'll need to restart R to have the update take effect |
Also, if it does persist please provide a reproducible example |
I cannot replicate this. Neither the error message nor any problems with the generated svg... Do you have write access to the location you are working in? |
Yes i do |
Is xts required to trigger the issue? |
Yes, no issues with other data types crossed my path so far. I value svg and especially svglite very much since the file sizes can be kept small. That's also the reason why I use svg-buddy to optimize (even more). To keep typography consistent my preferred font (roboto condensed) is embedded, but only once for the dashboard (of 20 or more svg files). |
Is there anything weird about your setup at all? Since I can't replicate any of this and since a graphic device have no concept of which packages are loaded (it only receives low-level instructions such as "draw a line there") this issue seems downright unsolvable unless we can somehow replicate it outside of your computer |
Not that I know, everythng is fine considering setup on debian10 and macos11.15.7, on both machines the issue arises as you can see above. Let me check this issue on windows later the day. |
Can you provide a reprex that does not rely on any loaded data |
Please use the reprex package as it ensures that your example is self contained and is not reliant on anything in your R setup. Have a look at https://reprex.tidyverse.org/index.html to familiarise yourself with the package |
I can see your issue now... In the future though, please do not use screen shots of code as it makes it extremely cumbersome for those you wish to help you reproduce your issue |
here you go: require(xts)
require(svglite)
sessionInfo()
# estr <- readRDS("estr.rds")
estr <- xts(1:10, Sys.Date()+1:10)
svglite('test2.svg')
plot(estr, main='€STR')
dev.off() |
sorry I should know what a hashtag means in MD ;-) |
Hi dear Developers,
there seems to be a bug in svglite, hence, we cannot use the compiled svg-image without correction.
test case: [see test-svglite.R, files attached]
Solution: the first 11 lines must be deleted!
Please could you investigate and remediate?
Many thanks and much appreciated.
Heinrich
Archive.zip
The text was updated successfully, but these errors were encountered: