| 1 | # renv warns when installing an already-loaded package |
| 2 | |
| 3 | Code |
| 4 | install("[email protected]") |
| 5 | Output |
| 6 | The following package(s) will be installed: |
| 7 | - bread [0.1.0] |
| 8 | These packages will be installed into "<tempdir>/<renv-library>". |
| 9 | |
| 10 | # Installing packages --- |
| 11 | [32m✔[0m bread 0.1.0 [copied from cache] |
| 12 | Successfully installed 1 package in XXXX seconds. |
| 13 | |
| 14 | The following loaded package(s) have been updated: |
| 15 | - bread |
| 16 | Restart your R session to use the new versions. |
| 17 | |
| 18 | |
| 19 | # install has user-friendly output |
| 20 | |
| 21 | Code |
| 22 | install() |
| 23 | Output |
| 24 | The following package(s) will be installed: |
| 25 | - bread [1.0.0] |
| 26 | - breakfast [1.0.0] |
| 27 | - oatmeal [1.0.0] |
| 28 | - toast [1.0.0] |
| 29 | These packages will be installed into "<tempdir>/<renv-library>". |
| 30 | |
| 31 | # Downloading packages --- |
| 32 | [32m✔[0m bread 1.0.0 |
| 33 | [32m✔[0m breakfast 1.0.0 |
| 34 | [32m✔[0m oatmeal 1.0.0 |
| 35 | [32m✔[0m toast 1.0.0 |
| 36 | Successfully downloaded 4 packages in XXXX seconds. |
| 37 | |
| 38 | # Installing packages --- |
| 39 | [32m✔[0m bread 1.0.0 [built from source] |
| 40 | [32m✔[0m breakfast 1.0.0 [built from source] |
| 41 | [32m✔[0m oatmeal 1.0.0 [built from source] |
| 42 | [32m✔[0m toast 1.0.0 [built from source] |
| 43 | Successfully installed 4 packages in XXXX seconds. |
| 44 | |
| 45 | --- |
| 46 | |
| 47 | Code |
| 48 | install() |
| 49 | Output |
| 50 | The following package(s) will be installed: |
| 51 | - bread [1.0.0] |
| 52 | - breakfast [1.0.0] |
| 53 | - oatmeal [1.0.0] |
| 54 | - toast [1.0.0] |
| 55 | These packages will be installed into "<tempdir>/<renv-library>". |
| 56 | |
| 57 | # Installing packages --- |
| 58 | [32m✔[0m bread 1.0.0 [copied from cache] |
| 59 | [32m✔[0m breakfast 1.0.0 [copied from cache] |
| 60 | [32m✔[0m oatmeal 1.0.0 [copied from cache] |
| 61 | [32m✔[0m toast 1.0.0 [copied from cache] |
| 62 | Successfully installed 4 packages in XXXX seconds. |
| 63 | |
| 64 | # install() report doesn't crash when a package has no version |
| 65 | |
| 66 | Code |
| 67 | install() |
| 68 | Output |
| 69 | The following package(s) will be installed: |
| 70 | - missing [*] |
| 71 | These packages will be installed into "<wd>/renv/library/<platform-prefix>". |
| 72 | |
| 73 | # Downloading packages --- |
| 74 | [31m✖[0m missing |
| 75 | # Installing packages --- |
| 76 | |
| 77 | The following package(s) were not installed successfully: |
| 78 | - [missing]: failed to download |
| 79 | You may need to manually download and install these packages. |
| 80 | |
| 81 | Condition |
| 82 | Error: |
| 83 | ! failed to install "missing" (package 'missing' is not available) |
| 84 | |
| 85 | # install from local sources shows progress |
| 86 | |
| 87 | Code |
| 88 | install(path) |
| 89 | Output |
| 90 | The following package(s) will be installed: |
| 91 | - bread [1.0.0] |
| 92 | These packages will be installed into "<wd>/renv/library/<platform-prefix>". |
| 93 | |
| 94 | # Downloading packages --- |
| 95 | [32m✔[0m bread 1.0.0 |
| 96 | Successfully downloaded 1 package in XXXX seconds. |
| 97 | |
| 98 | # Installing packages --- |
| 99 | [32m✔[0m bread 1.0.0 [built from source] |
| 100 | Successfully installed 1 package in XXXX seconds. |
| 101 |