| 1 | # reports if status not possible |
| 2 | |
| 3 | Code |
| 4 | . <- status() |
| 5 | Output |
| 6 | This project does not appear to be using renv. |
| 7 | Use `renv::init()` to initialize the project. |
| 8 | |
| 9 | --- |
| 10 | |
| 11 | Code |
| 12 | . <- status() |
| 13 | Output |
| 14 | This project does not contain a lockfile. |
| 15 | Use `renv::snapshot()` to create a lockfile. |
| 16 | |
| 17 | --- |
| 18 | |
| 19 | Code |
| 20 | . <- status() |
| 21 | Output |
| 22 | There are no packages installed in the project library. |
| 23 | Use `renv::restore()` to install the packages defined in lockfile. |
| 24 | |
| 25 | # reports when project is synchronised |
| 26 | |
| 27 | Code |
| 28 | . <- status() |
| 29 | Output |
| 30 | No issues found -- the project is in a consistent state. |
| 31 | |
| 32 | # reports installation problems with non-installed packages |
| 33 | |
| 34 | Code |
| 35 | . <- status() |
| 36 | Output |
| 37 | The following package(s) are in an inconsistent state: |
| 38 | |
| 39 | package installed recorded used |
| 40 | bread n n y |
| 41 | egg n y y |
| 42 | oatmeal n y ? |
| 43 | |
| 44 | See `?renv::status` for advice on resolving these issues. |
| 45 | |
| 46 | # reports synchronisation problems with installed packages |
| 47 | |
| 48 | Code |
| 49 | . <- status() |
| 50 | Output |
| 51 | The following package(s) are in an inconsistent state: |
| 52 | |
| 53 | package installed recorded used |
| 54 | bread y n y |
| 55 | egg y y n |
| 56 | |
| 57 | See `?renv::status` for advice on resolving these issues. |
| 58 | |
| 59 | # reports version differences |
| 60 | |
| 61 | Code |
| 62 | . <- status() |
| 63 | Output |
| 64 | The following package(s) are out of sync [lockfile != library]: |
| 65 | |
| 66 | # CRAN --- |
| 67 | - egg [2.0.0 != 1.0.0] |
| 68 | - oatmeal [0.9.0 != 1.0.0] |
| 69 | |
| 70 | See `?renv::status` for advice on resolving these issues. |
| 71 | |
| 72 | # status() notifies user if R version does not match |
| 73 | |
| 74 | Code |
| 75 | . <- status() |
| 76 | Output |
| 77 | The lockfile was generated with R 1.0.0, but you're using R <r-version>. |
| 78 | |
| 79 | See `?renv::status` for advice on resolving these issues. |
| 80 | |
| 81 | # status() notifies user if packages are missing and inconsistent |
| 82 | |
| 83 | Code |
| 84 | . <- status() |
| 85 | Output |
| 86 | The following package(s) are used in this project, but are not installed: |
| 87 | - breakfast |
| 88 | |
| 89 | The following package(s) are out of sync [lockfile != library]: |
| 90 | |
| 91 | # CRAN --- |
| 92 | - bread [1.0.0 != 0.1.0] |
| 93 | |
| 94 | See `?renv::status` for advice on resolving these issues. |
| 95 | |
| 96 | # status() version check can be disabled |
| 97 | |
| 98 | Code |
| 99 | . <- renv::status() |
| 100 | Output |
| 101 | The lockfile was generated with R 1.0.0, but you're using R <r-version>. |
| 102 | |
| 103 | See `?renv::status` for advice on resolving these issues. |
| 104 | |
| 105 | --- |
| 106 | |
| 107 | Code |
| 108 | . <- renv::status() |
| 109 | Output |
| 110 | No issues found -- the project is in a consistent state. |
| 111 |