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

Fix check_renv behavior #192

Merged
merged 3 commits into from
Apr 7, 2023
Merged

Fix check_renv behavior #192

merged 3 commits into from
Apr 7, 2023

Conversation

juliasilge
Copy link
Member

Closes #189

No incorrect message now:

library(tidymodels)
library(pins)
library(vetiver)
#> 
#> Attaching package: 'vetiver'
#> The following object is masked from 'package:tune':
#> 
#>     load_pkgs

data(bivariate)
ranger_fit <- 
    workflow(Class ~ A + B, rand_forest(mode = "classification")) %>%
    fit(bivariate_train)

v <- vetiver_model(ranger_fit, "biv-rf")

b <- board_temp()
b %>% vetiver_pin_write(v, check_renv = TRUE)
#> Creating new version '20230407T172359Z-f060b'
#> Writing to pin 'biv-rf'
#> 
#> Create a Model Card for your published model
#> • Model Cards provide a framework for transparent, responsible reporting
#> • Use the vetiver `.Rmd` template as a place to start

out <- b %>% vetiver_pin_read("biv-rf", check_renv = TRUE)

Created on 2023-04-07 with reprex v2.0.2

@juliasilge juliasilge merged commit dae1c2b into main Apr 7, 2023
@juliasilge juliasilge deleted the fix-check-renv branch April 7, 2023 17:50
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

Successfully merging this pull request may close these issues.

Bug in check_renv = TRUE
1 participant