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

Error when creating repo #155

Closed
pawelru opened this issue Apr 18, 2024 · 2 comments
Closed

Error when creating repo #155

pawelru opened this issue Apr 18, 2024 · 2 comments

Comments

@pawelru
Copy link

pawelru commented Apr 18, 2024

minicran_path <- tempfile()
dir.create(minicran_path)
miniCRAN::makeRepo(pkgs = NULL, path = minicran_path, type = c("source", .Platform$pkgType))
#> Created new folder: /var/folders/px/_50zh3ns2nd4pmd727cmwlc00000gn/T//RtmpndV3gi/filee86a4ef89ac8/src/contrib
#> Created new folder: /var/folders/px/_50zh3ns2nd4pmd727cmwlc00000gn/T//RtmpndV3gi/filee86a4ef89ac8/bin/macosx/big-sur-arm64/contrib/4.3
#> Warning in read.dcf(file = tmpf): cannot open compressed file
#> '//var/folders/px/_50zh3ns2nd4pmd727cmwlc00000gn/T//RtmpWMiVMe/filee2b76d663999/bin/macosx/big-sur-arm64/contrib/4.3/PACKAGES',
#> probable reason 'No such file or directory'
#> Error in read.dcf(file = tmpf): cannot open the connection

sessionInfo()
#> R version 4.3.2 (2023-10-31)
#> Platform: aarch64-apple-darwin20 (64-bit)
#> Running under: macOS Sonoma 14.3
#> 
#> Matrix products: default
#> BLAS:   /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib 
#> LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0
#> 
#> locale:
#> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
#> 
#> time zone: Europe/Zurich
#> tzcode source: internal
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> loaded via a namespace (and not attached):
#>  [1] vctrs_0.6.5       httr_1.4.7        cli_3.6.2         knitr_1.46       
#>  [5] rlang_1.1.3       xfun_0.43         purrr_1.0.2       styler_1.10.3    
#>  [9] assertthat_0.2.1  glue_1.7.0        htmltools_0.5.8.1 rmarkdown_2.26   
#> [13] R.cache_0.16.0    evaluate_0.23     fastmap_1.1.1     yaml_2.3.8       
#> [17] lifecycle_1.0.4   compiler_4.3.2    igraph_2.0.1.1    fs_1.6.3         
#> [21] pkgconfig_2.0.3   R.oo_1.26.0       R.utils_2.12.3    digest_0.6.35    
#> [25] R6_2.5.1          reprex_2.1.0      magrittr_2.0.3    miniCRAN_0.3.0   
#> [29] R.methodsS3_1.8.2 tools_4.3.2       withr_3.0.0

Created on 2024-04-18 with reprex v2.1.0

@andrie
Copy link
Owner

andrie commented Apr 18, 2024

What do you expect to happen when pkgs = NULL ?
Add a pkgs argument.

@pawelru
Copy link
Author

pawelru commented Apr 18, 2024

My idea is to create empty repo and then add packages one by one afterwards. Adding a dummy package makes it work. Thank you for a good hint! I'm closing this

@pawelru pawelru closed this as completed Apr 18, 2024
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