Skip to content

how to copy proj library data to R-package binary on CRAN #2502

Answered by jeroen
adokter asked this question in Q&A
Discussion options

You must be logged in to vote

You should not set these variables yourself; the owner of the build server sets PROJ_GDAL_DATA_COPY and PROJ_LIB for you to let your package know where it can find those files.

For the r-universe builds that you can find on https://cran.dev/vol2birdR these variables were set by the macos-prep action. But it doesn't matter how they get set, all your package needs to do is respect the values from the environment variables on the current server.

It is correct that no data files are included in the source package, as the version of the data needs to match the version of libproj that your package was linked to. Again, all these things are provided by the build server.

Replies: 11 comments 13 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@adokter
Comment options

@jeroen
Comment options

Answer selected by adokter
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@adokter
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jeroen
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@edzer
Comment options

@jeroen
Comment options

@s-u
Comment options

@adokter
Comment options

@adokter
Comment options

Comment options

You must be logged in to vote
2 replies
@edzer
Comment options

@s-u
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants