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

Getting error "Cannot create packrat data from manifest.json: cannot transform manifest into packrat.lock: package maptools does not define repository." #1059

Open
L-Tamayo opened this issue Apr 4, 2024 · 3 comments

Comments

@L-Tamayo
Copy link

L-Tamayo commented Apr 4, 2024

When deploying an rshiny app I created I get this error

Build error: Cannot create packrat data from manifest.json: cannot transform manifest into packrat.lock: package maptools does not define repository.
I am using renv.lock file to capture package dependancies, i know the rsconnect still uses packrat in the background to restore project environments but I am not using the package maptools so i am unsure why this is being called. It is also no longer in CRAN so I dont think it should be called either. I would appreciate help with this. Thank you.

@aronatkins
Copy link
Contributor

@L-Tamayo - I cannot explain why maptools is part of your project dependencies if it is not part of your renv.lock, but recent versions of Posit Connect should be able to handle this situation.

This is likely a duplicate of #809.

Posit Connect 2023.05.0 allows manifests with packages which do not declare a repository, as this can happen for archived packages.

If you continue to have trouble, could you share your renv.lock and which rsconnect and renv versions you are using?

@L-Tamayo
Copy link
Author

L-Tamayo commented Apr 4, 2024

Hello @aronatkins,

Thank you for your response. That seems to be what is happening as maptools seems to be archived. I had not realized that ggpubr required rstatix which requires maptools. I am using rsconnect version 1.2.1 and renv version 1.0.5.

Is there a way for me to install Posit Connect 2023.05.0 that does not require sudo permissions?

I have also tried deploying with "rsconnect", "0.8.29" and the same issue comes up " unable to deploy package dependency 'maptools'.

I appreciate your help with this.

my renv file looks like the following:
renv.txt

@aronatkins
Copy link
Contributor

@L-Tamayo

First, maptools is mentioned in your renv.lock. It comes in as a dependency of the car package, which is a dependency of rstatix, which is a dependency of ggpubr. My guess is that at least some of these packages have released updated versions to avoid the maptools dependency.

Looks like car no longer depends upon maptools, so you may want to update some of your dependencies. https://cran.r-project.org/web/packages/car/

Posit Connect updates need to be installed by a systems administrator. You should reach out to whomever manages your Connect instance.

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