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

Issue running anyflights() function cannot open file at get_planes() #27

Open
Colleca opened this issue Jan 20, 2025 · 2 comments
Open

Comments

@Colleca
Copy link

Colleca commented Jan 20, 2025

Hello, running into an issue trying out the anyflights() function. Opened a fresh renv project with only this package and dependents installed. I believe based on the status messages its in the get_planes() part of the function.

Image

For fun I also tried making a folder called "flights_data" in the project and writing to it. Frustratingly I can see the file does exist but it says it cant open it, weird.

Image

It exists:

Image

@simonpcouch
Copy link
Owner

Hm, interesting. Could you run this code and paste the results here?

# if needed:
# install.packages("reprex")

reprex::reprex({
tempfile <- tempfile()
writeLines("This is a test line", tempfile)

zip_tempfile <- tempfile(fileext = ".zip")
zip(zip_tempfile, files = tempfile)
unzip(zip_tempfile)
})

@Colleca
Copy link
Author

Colleca commented Jan 22, 2025

there was no output so i added the print line. when i run it outside of reprex in console i get this instead

Image

tempfile <- tempfile()
writeLines("This is a test line", tempfile)

zip_tempfile <- tempfile(fileext = ".zip")
zip(zip_tempfile, files = tempfile)
unzip(zip_tempfile)
print("do something")
#> [1] "do something"

Created on 2025-01-22 with reprex v2.1.1

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

2 participants