Ideally I wanted to add data as a pull request that I can validate and accept. In practice is not really possible.
1) a pull request is a github feature, so git2r do not helps on this. You can clone, add, but not do a pull.request.
library(git2r)
## Create a temporary directory to hold the repository
temp_path <- file.path(tempfile(pattern="traits-"), "traits")
dir.create(temp_path, recursive=TRUE)
## Clone the repository
repo <- clone("https://github.com/ibartomeus/traitdata.git", temp_path)
write.csv(dat, paste0(temp_path, "/bee_specimens.csv"), row.names = FALSE, append = TRUE)
add(repo, "bee_specimens.csv")
commit(repo, "added data to check")
#pull request?
#need to delete temporal dir? #unink()
2) but github has a API and rgithub can use it. This may allow to fork, pull request for github users, but need log in, and it's not worthy to follow that direction, I think.
3) Alternatively I wanted to send the .csv somewhere, to catch it later. WITHOUT having to log in and in a place with only write access. google forms seems ideal for this. But is not because you can only add a row at a time and its bloody slow, so for data with 100 rows will take an hour :(
Ideally I wanted to add data as a pull request that I can validate and accept. In practice is not really possible.
1) a pull request is a github feature, so git2r do not helps on this. You can clone, add, but not do a pull.request.
2) but github has a API and rgithub can use it. This may allow to fork, pull request for github users, but need log in, and it's not worthy to follow that direction, I think.
3) Alternatively I wanted to send the .csv somewhere, to catch it later. WITHOUT having to log in and in a place with only write access. google forms seems ideal for this. But is not because you can only add a row at a time and its bloody slow, so for data with 100 rows will take an hour :(
4) google sheets then? Well, sheets has to public and people can write/edit at will... which may be dangerous.
5) The option what I like best after all presented caveats is send me an email with the data. This may be ugly, but why not?