| 1 | # bootstrapping gives informative output when succesful |
| 2 | |
| 3 | Code |
| 4 | bootstrap(version = "0.9.0", library = library) |
| 5 | Output |
| 6 | # Bootstrapping renv 0.9.0 --- |
| 7 | - Downloading renv ... OK |
| 8 | - Installing renv ... OK |
| 9 | |
| 10 | Code |
| 11 | bootstrap(version = "1.0.0", library = library) |
| 12 | Output |
| 13 | # Bootstrapping renv 1.0.0 --- |
| 14 | - Downloading renv ... OK |
| 15 | - Installing renv ... OK |
| 16 | |
| 17 | Code |
| 18 | bootstrap(version = "1.0.0.1", library = library) |
| 19 | Output |
| 20 | # Bootstrapping renv 1.0.0.1 --- |
| 21 | - Downloading renv ... OK |
| 22 | - Installing renv ... OK |
| 23 | |
| 24 | |
| 25 | # bootstrapping gives informative output when download fails |
| 26 | |
| 27 | Code |
| 28 | bootstrap(version = "0.9.0", library = library) |
| 29 | Output |
| 30 | # Bootstrapping renv 0.9.0 --- |
| 31 | - Downloading renv ... FAILED |
| 32 | Condition |
| 33 | Error in `h()`: |
| 34 | ! failed to download: |
| 35 | All download methods failed |
| 36 | Code |
| 37 | bootstrap(version = "1.0.0", library = library) |
| 38 | Output |
| 39 | # Bootstrapping renv 1.0.0 --- |
| 40 | - Downloading renv ... FAILED |
| 41 | Condition |
| 42 | Error in `h()`: |
| 43 | ! failed to download: |
| 44 | All download methods failed |
| 45 | Code |
| 46 | bootstrap(version = "1.0.0.1", library = library) |
| 47 | Output |
| 48 | # Bootstrapping renv 1.0.0.1 --- |
| 49 | - Downloading renv ... FAILED |
| 50 | Condition |
| 51 | Error in `h()`: |
| 52 | ! failed to download: |
| 53 | All download methods failed |
| 54 | |
| 55 | # bootstrapping gives informative output when install fails |
| 56 | |
| 57 | Code |
| 58 | bootstrap(version = "1.0.0.1", library = library) |
| 59 | Output |
| 60 | # Bootstrapping renv 1.0.0.1 --- |
| 61 | - Downloading renv ... OK |
| 62 | - Installing renv ... FAILED |
| 63 | Condition |
| 64 | Error in `h()`: |
| 65 | ! failed to install: |
| 66 | installation of renv failed |
| 67 | =========================== |
| 68 | test failure |
| 69 | |
| 70 | # renv_boostrap_version_validate() gives good warnings |
| 71 | |
| 72 | Code |
| 73 | . <- renv_bootstrap_validate_version(version = "1.2.3", description = list( |
| 74 | Version = "2.3.4")) |
| 75 | Output |
| 76 | renv 2.3.4 was loaded from project library, but this project is configured to use renv 1.2.3. |
| 77 | - Use `renv::record("[email protected]")` to record renv 2.3.4 in the lockfile. |
| 78 | - Use `renv::restore(packages = "renv")` to install renv 1.2.3 into the project library. |
| 79 | Code |
| 80 | . <- renv_bootstrap_validate_version(version = "1.2.3-1", description = list( |
| 81 | Version = "1.2.3")) |
| 82 | Output |
| 83 | renv 1.2.3 was loaded from project library, but this project is configured to use renv 1.2.3-1. |
| 84 | - Use `renv::record("[email protected]")` to record renv 1.2.3 in the lockfile. |
| 85 | - Use `renv::restore(packages = "renv")` to install renv 1.2.3-1 into the project library. |
| 86 | Code |
| 87 | . <- renv_bootstrap_validate_version(version = structure("1.2.3-1", sha = "22d015905828c3398728a5ff9e381e0433976263"), |
| 88 | description = list(Version = "1.2.3-1", RemoteType = "github", RemoteSha = "6b09befaaba3f55e0e2c141cb45c5d247b61ef1e")) |
| 89 | Output |
| 90 | renv 1.2.3-1 [sha: 6b09bef] was loaded from project library, but this project is configured to use renv 1.2.3-1 [sha: 22d0159]. |
| 91 | - Use `renv::record("rstudio/renv@6b09befaaba3f55e0e2c141cb45c5d247b61ef1e")` to record renv 1.2.3-1 [sha: 6b09bef] in the lockfile. |
| 92 | - Use `renv::restore(packages = "renv")` to install renv 1.2.3-1 [sha: 22d0159] into the project library. |
| 93 | Code |
| 94 | . <- renv_bootstrap_validate_version(version = structure("1.2.3-1", sha = "22d015905828c3398728a5ff9e381e0433976263"), |
| 95 | description = list(Version = "1.2.3")) |
| 96 | Output |
| 97 | renv 1.2.3 was loaded from project library, but this project is configured to use renv 1.2.3-1 [sha: 22d0159]. |
| 98 | - Use `renv::record("[email protected]")` to record renv 1.2.3 in the lockfile. |
| 99 | - Use `renv::restore(packages = "renv")` to install renv 1.2.3-1 [sha: 22d0159] into the project library. |
| 100 | |
| 101 | # bootstrap version validation handles 'standard' remote types |
| 102 | |
| 103 | Code |
| 104 | . <- renv_bootstrap_validate_version(version = "1.0.0", description = list( |
| 105 | Version = "1.0.1", RemoteType = "standard", RemoteSha = "1.0.1")) |
| 106 | Output |
| 107 | renv 1.0.1 was loaded from project library, but this project is configured to use renv 1.0.0. |
| 108 | - Use `renv::record("[email protected]")` to record renv 1.0.1 in the lockfile. |
| 109 | - Use `renv::restore(packages = "renv")` to install renv 1.0.0 into the project library. |
| 110 |