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

error in read_delim #1

Open
abubelinha opened this issue Apr 7, 2020 · 2 comments
Open

error in read_delim #1

abubelinha opened this issue Apr 7, 2020 · 2 comments

Comments

@abubelinha
Copy link

Hi.
I am a total R newbie.

I just discover your code and wanted to give it a try.
I followed your instructions for installation (Rstudio, Windows 7)

devtools::install_github("jjfitz/readgedcom")

I only see 2 functions, so I suppose this is the way to use it:

readgedcom::read_gedcom("path/to/mygenealogy.ged")

But when I try that I get this error:

Error in read_delim(file_path, "\n", "\n\n", col_names = FALSE) : 
  could not find function "read_delim"

I do not have a function read_delim() available, but I have read.delim() instead.

Maybe I have to install some other packages before running yours, so read_delim() function becomes available?

Thanks a lot in advance

@jjfitz
Copy link
Owner

jjfitz commented Apr 8, 2020

That's ok, I am new to making packages. the read_delim function is in the readr package, but you can also install the tidyverse package and it will give you all of the functions you need to run the readgedcom package.

install.packages("tidyverse")
library("tidyverse")

@lucasmation
Copy link

lucasmation commented Sep 27, 2020

@jjfitz you need to addy tidyverse (or readr) as a dependency to your package, so it will be loaded once the person loads our package.

EDIT1: this book could help https://r-pkgs.org/

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