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

Install fails #4

Closed
markhogue opened this issue Jan 3, 2019 · 12 comments
Closed

Install fails #4

markhogue opened this issue Jan 3, 2019 · 12 comments

Comments

@markhogue
Copy link

Installation with devtools fails with or without commit number. Showing below with a 9 month old commti, but I tried lots in between:
devtools::install_github(repo = "marcusvolz/mathart", commit = "2ca706c")

Error in read.dcf(path) :
Found continuation line starting ' person("Marcus", ...' at begin of record.

By contrast,
devtools::install_github(repo = "marcusvolz/ggart")
works fine. One difference is the DESCRIPTION file has only one authors@R line.

@mas192
Copy link

mas192 commented Feb 17, 2019

Please help, function not found error
#Create mollusc shells

#The shell model is described in the paper "Models for mollusc shell shape" by M.B. Cortie (1989).

df <- mollusc()
Error in mollusc() : could not find function "mollusc"
df1 <- df %>% mutate(id = 1)
Error in df %>% mutate(id = 1) : could not find function "%>%"
df2 <- df %>% mutate(id = 2)
Error in df %>% mutate(id = 2) : could not find function "%>%"
df3 <- df %>% mutate(id = 3)
Error in df %>% mutate(id = 3) : could not find function "%>%"

p <- ggplot() +

  • geom_point(aes(x, y), df1, size = 0.03, alpha = 0.03) +
  • geom_path( aes(x, y), df1, size = 0.03, alpha = 0.03) +
  • geom_point(aes(x, z), df2, size = 0.03, alpha = 0.03) +
  • geom_path( aes(x, z), df2, size = 0.03, alpha = 0.03) +
  • geom_point(aes(y, z), df3, size = 0.03, alpha = 0.03) +
  • geom_path( aes(y, z), df3, size = 0.03, alpha = 0.03) +
  • facet_wrap(~id, nrow = 2, scales = "free") +
  • theme_blankcanvas(margin_cm = 0.5)
    Error in fortify(data) : object 'df1' not found

@marcusvolz
Copy link
Owner

Mark, I don't seem to get this problem when I do a fresh install. It looks like it has something to do with r-lib/devtools#1900 - I've removed indentations in the description file so maybe that will work.

@marcusvolz
Copy link
Owner

mas192 - I'm not sure why you are getting those errors. Have you loaded the packages?
library(mathart)
library(ggart)
library(ggforce)
library(Rcpp)
library(tidyverse)

@mas192
Copy link

mas192 commented Feb 17, 2019

Yes, I did!!

@mas192
Copy link

mas192 commented Feb 17, 2019

I'll reinstall mathart and see if it fixes it

@mas192
Copy link

mas192 commented Feb 17, 2019

I see all the variable, but now I dont see the plot, sorry,
df <- mollusc()
df1 <- df %>% mutate(id = 1)
df2 <- df %>% mutate(id = 2)
df3 <- df %>% mutate(id = 3)

p <- ggplot() +
geom_point(aes(x, y), df1, size = 0.03, alpha = 0.03) +
geom_path( aes(x, y), df1, size = 0.03, alpha = 0.03) +
geom_point(aes(x, z), df2, size = 0.03, alpha = 0.03) +
geom_path( aes(x, z), df2, size = 0.03, alpha = 0.03) +
geom_point(aes(y, z), df3, size = 0.03, alpha = 0.03) +
geom_path( aes(y, z), df3, size = 0.03, alpha = 0.03) +
facet_wrap(~id, nrow = 2, scales = "free") +
theme_blankcanvas(margin_cm = 0.5)

ggsave("mollusc01.png", width = 80, height = 80, units = "cm")

am I doing something wrong?

@marcusvolz
Copy link
Owner

Is there not a png file called "mollusc01.png" in your working directory? (Type getwd() to see where your working directory is.)

@mas192
Copy link

mas192 commented Feb 17, 2019

Yes I see the file but is empty

@marcusvolz
Copy link
Owner

ggsave can take some time to generate the plot (5+ minutes on my machine). In the meantime it might look like an empty file. It seems to work ok on my machine - sorry I can't be of more help.

@mas192
Copy link

mas192 commented Feb 17, 2019

Oh okay that makes, sense, thanks!!!!

@mas192
Copy link

mas192 commented Feb 17, 2019

you are right it worked, thanks
mollusc01

@markhogue
Copy link
Author

Thank you so much, Marcus. It works now.
Sorry I took so long to reply. I'm new to github and thought I was going to see a notification in my email.

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

3 participants