Comments (5)
are you kidding me?
filename="inst/figures/imgfile.png")
there is no inst/figures
folder in your current working directory.
- don't just copy paste without looking at the code.
- read the error before posting.
from hexsticker.
To provide further detail to this issue:
When I use the code, similar to the example for 'image file'
imgurl <- system.file("argoFloatsLogo.png", package="hexSticker")
sticker(imgurl, package="hexSticker", p_size=20, s_x=1, s_y=.75, s_width=.6,
filename="inst/figures/imgfile.png")
I receive the following error:
Error in grDevices::png(..., res = dpi, units = "in") :
unable to start png() device
In addition: Warning messages:
1: In grDevices::png(..., res = dpi, units = "in") :
unable to open file 'inst/figures/imgfile.png' for writing
2: In grDevices::png(..., res = dpi, units = "in") : opening device failed
Thank you for your help!
from hexsticker.
the command is wrong.
imgurl <- system.file("argoFloatsLogo.png", package="hexSticker")
just use:
imgurl <- remote_url__or__file_path_in_your_system
from hexsticker.
Hi there,
I tried that as well. When I use the following code:
imgurl <- "C:/Users/harbinj/Documents/GitHub/argoFloats/sandbox/jlh/02_Logo/argoFloatsLogo.png"
sticker(imgurl, package="argoFloats", p_size=20, s_x=1, s_y=.75, s_width=.6,
filename="inst/figures/imgfile.png")
And I receive the following error:
Error in grDevices::png(..., res = dpi, units = "in") :
unable to start png() device
In addition: Warning messages:
1: In grDevices::png(..., res = dpi, units = "in") :
unable to open file 'inst/figures/imgfile.png' for writing
2: In grDevices::png(..., res = dpi, units = "in") : opening device failed
Thanks again!
from hexsticker.
Hi there,
My apologies, I relatively new to R and still learning. Thank you for pointing that out, the code now works for me.
from hexsticker.
Related Issues (20)
- Package name to accept `expression()` HOT 3
- is there a way to add a matrix? HOT 1
- h_size > 3 (large hexagon border thickness) crops off hexagon points HOT 1
- need add theme(legend.position="none") with ggplot2 plot HOT 1
- Strip above plot HOT 1
- top and bottom corners cut off HOT 2
- Error when trying to create an "empty" sticker (only with package name) HOT 2
- Can package name text be roated? HOT 1
- png error in creating in using sticker function HOT 6
- README.Rmd renders into .html instead of .md HOT 1
- Can sticker provide a transparent_around_sticker argument?
- Problem with example HOT 1
- R tells me <the "sticker" function could not be found>
- Border always cut off in .png or .svg HOT 4
- Feature Request: Multi-line package names (or control over ggplot's lineheight argument) HOT 2
- https://saythanks.io/to/GuangchuangYu link is broken :(
- Specify sticker dimensions HOT 2
- [Suggestion] Code for preview hexSticker. HOT 2
- Typo in README HOT 1
- Poor Quality Sticker when Saving on Windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexsticker.