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

Modifications for large archives; other minor changes #380

Merged
merged 243 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
243 commits
Select commit Hold shift + click to select a range
f13e5fd
now that fs is Imports, use it more (where faster/better)
eliotmcintire Nov 24, 2023
40bee2b
rm system.time
eliotmcintire Nov 24, 2023
5ab3e2c
allow targetFile = NA ... meaning no expected targetFile
eliotmcintire Nov 24, 2023
4f73510
prevent 2x Checksuming same files
eliotmcintire Nov 24, 2023
39c938e
don't linkOrCopy at end if files are already same
eliotmcintire Nov 24, 2023
2ea5b20
prevent false need to re-checksum because of "similar"
Nov 24, 2023
31ca869
give additional message when Checksums failing-- include inputPaths
Nov 24, 2023
6b1e547
base unzip can handle bigger (set and tested up to >5e9)
Nov 24, 2023
b93bdcd
bugfixes for archive file lists -- need to switch from \\ to / paths,…
Nov 24, 2023
c8c1e2a
prevent unnecessary redos
Nov 25, 2023
2448be9
messaging updates
Nov 25, 2023
3ad7855
linkOrCopyUpdateOnly
Nov 25, 2023
efd5fe8
v2.0.10.9001 & bump date
Nov 25, 2023
88db9ee
list2
eliotmcintire Nov 27, 2023
5a6abea
bugfix targetFilePath -- when not "needed"
eliotmcintire Nov 27, 2023
a9278f9
better error ( not ee$destinationPath)
eliotmcintire Nov 28, 2023
d510b9e
normPath - more accurate replacement of normalizePath
eliotmcintire Nov 28, 2023
341adb0
makeRelative -- tried fs:path_rel -- not good; better gsub
eliotmcintire Nov 28, 2023
9a81fd3
gdalResample -- rm -tap --> rounds coordinates to nearest res
eliotmcintire Nov 28, 2023
e80b33a
gdalMask -- allow gridded -- but not faster
eliotmcintire Nov 28, 2023
166934f
message correction
eliotmcintire Nov 28, 2023
324113d
change -- "match by basename" in Checksums
eliotmcintire Nov 28, 2023
c46fd99
listNamed instead of list2
eliotmcintire Nov 28, 2023
12ae652
Build
tati-micheletti Nov 28, 2023
1f13c41
Trying to add a time out for big GDrive files
tati-micheletti Nov 28, 2023
657ca70
listNamed docs
eliotmcintire Nov 28, 2023
178f575
Merge remote-tracking branch 'origin/modsForLargeArchives' into modsF…
eliotmcintire Nov 28, 2023
cf05292
withTimeout
eliotmcintire Nov 28, 2023
fa48eb9
change setup.R for 585
eliotmcintire Nov 29, 2023
1eacd37
modify ... done spacing
eliotmcintire Nov 29, 2023
0cf6eaa
minor fixes of test-preProcessWorks -- res --> resolution
eliotmcintire Nov 29, 2023
868ff69
partial revert of withTimeout
eliotmcintire Nov 29, 2023
caacde1
deal with `alsoExtract = NA`
eliotmcintire Nov 29, 2023
4ce5536
postProcessTo -- if all `*to` args are NULL, then don't fail, just skip
eliotmcintire Nov 29, 2023
6ebd6b6
R CMD check -- globalVariables
eliotmcintire Nov 29, 2023
83c5887
withTimeout -- inside `retry` so that error message is correct
eliotmcintire Nov 29, 2023
267404f
R CMD checking -- inputPaths can be length > 1
eliotmcintire Nov 29, 2023
c1482ad
makeRelative is not vectorized on `absoluteBase`
eliotmcintire Nov 29, 2023
e03ee2d
R CMD checking
eliotmcintire Nov 29, 2023
165e668
minor bugfixes
eliotmcintire Nov 29, 2023
c477717
R CMD check
eliotmcintire Nov 30, 2023
ac13657
normPath: revert fs::norm until it can do all necessary bits
eliotmcintire Nov 30, 2023
514dfc6
R CMD check -- update test_XX for latest testthat
eliotmcintire Nov 30, 2023
b23c4a0
don't delete `.tempPath` in `.callArchiveExtractFn`
eliotmcintire Nov 30, 2023
402ab73
.cacheMessageObjectToRetrieve
eliotmcintire Dec 1, 2023
3fd1637
export gdal* fns; add examples
eliotmcintire Dec 2, 2023
9ae3572
fix messaging for `linkOrCopy`
eliotmcintire Dec 2, 2023
de5b285
R CMD check fix
eliotmcintire Dec 2, 2023
e54ad18
fixes for Cache with NA warning
eliotmcintire Dec 2, 2023
57b221f
Merge branch 'modsForLargeArchives' of github.com:PredictiveEcology/r…
eliotmcintire Dec 2, 2023
df3e901
when targetFilePath guessed is wrong
eliotmcintire Dec 3, 2023
2fbe6ab
more docs
eliotmcintire Dec 4, 2023
30eeb2a
rm a tempfile
eliotmcintire Dec 4, 2023
4212367
fix example
eliotmcintire Dec 4, 2023
1ebb83f
isMemoised: new fn
eliotmcintire Dec 4, 2023
1d9dd6e
being to add `archive` as Suggests
eliotmcintire Dec 4, 2023
8f956c2
Merge branch 'modsForLargeArchives' of github.com:PredictiveEcology/r…
eliotmcintire Dec 4, 2023
1b9b896
mods to new fn
eliotmcintire Dec 4, 2023
62cb418
Merge branch 'modsForLargeArchives' of github.com:PredictiveEcology/r…
eliotmcintire Dec 4, 2023
5d3f4fd
message update for link/copy
eliotmcintire Dec 4, 2023
66fbe72
add archive::
eliotmcintire Dec 4, 2023
b4e16bb
Merge branch 'modsForLargeArchives' of github.com:PredictiveEcology/r…
eliotmcintire Dec 4, 2023
2cf9758
NA NA NA NA NA problem fixed
eliotmcintire Dec 4, 2023
7d07a1a
remove files if they exist before hardLinkOrCopy in preProcess
eliotmcintire Dec 5, 2023
1d56c8f
linkOrCopy cleanups
eliotmcintire Dec 5, 2023
f113d01
minor mods to messaging
eliotmcintire Dec 5, 2023
7415493
bring out "fn: XXXX" in red
eliotmcintire Dec 5, 2023
c03c294
possible bugfix
eliotmcintire Dec 5, 2023
fe992d3
update tests
eliotmcintire Dec 5, 2023
6fead98
updates to preProcess caught by tests
eliotmcintire Dec 5, 2023
a38cd8e
gdalMask -- use sf:: if vector is an sf
eliotmcintire Dec 6, 2023
ced0633
annoying message about "can't do hard link"
eliotmcintire Dec 6, 2023
0f238f0
keep unexpected attributes on wrapped objs
eliotmcintire Dec 6, 2023
e97a14b
outputObjects in Cache was not being passed to `.robustDigest`; .wrap…
eliotmcintire Dec 7, 2023
98ef67d
deal with attributes on Cached objs
eliotmcintire Dec 7, 2023
584b470
captureWarningsToAttr: deal with warnings better in linkOrCopy
eliotmcintire Dec 7, 2023
35440fe
switching between rds and qs cacheSaveFormat fixes
eliotmcintire Dec 7, 2023
590128d
postProces for sf class when intersect creates Lines and Points
eliotmcintire Dec 7, 2023
91c19e2
postProcess family messaging -- same spacing for ...done
eliotmcintire Dec 7, 2023
8aaaa50
use messageFunction elsewhere
eliotmcintire Dec 7, 2023
5196450
redoc
eliotmcintire Dec 7, 2023
5af8cda
bump v 2.0.10.9005
eliotmcintire Dec 7, 2023
d28e613
keepOrigGeom -- skip if from2Geom and fromGeom same
eliotmcintire Dec 7, 2023
230ad56
bump v2.0.10.9006
eliotmcintire Dec 7, 2023
050a9eb
need sf prefix, v2.0.10.9007
eliotmcintire Dec 7, 2023
2304a56
rm message space
eliotmcintire Dec 7, 2023
f96d6b9
message minor
eliotmcintire Dec 7, 2023
b96f36f
missing `worked`
eliotmcintire Dec 8, 2023
f342329
messagePreProcess; change "message" object names --> consistency
eliotmcintire Dec 9, 2023
6b5e1be
Checksums --> quickCheck default arg is option
eliotmcintire Dec 9, 2023
a499e51
messagePreProcess (more)
eliotmcintire Dec 9, 2023
8c3c522
.wrap --> don't use `envir(...)`
eliotmcintire Dec 9, 2023
f692a64
keepOrigGeom --> complete docs; bugfix
eliotmcintire Dec 9, 2023
5db7cfc
reportTime fn
eliotmcintire Dec 9, 2023
a0ddccd
bump
eliotmcintire Dec 9, 2023
b1dcb22
redoc
eliotmcintire Dec 10, 2023
f9bf774
.messagePreProcessIndent
eliotmcintire Dec 10, 2023
c139443
.wrap.environment -- bugfix all.names = TRUE
eliotmcintire Dec 10, 2023
4aa14f3
need explicit drive_auth in setup.R
eliotmcintire Dec 10, 2023
ce3aaf5
A little bit more help when a call fails in a Cache
eliotmcintire Dec 11, 2023
48b60e3
messageDF -- needs tweak when there are colours
eliotmcintire Dec 11, 2023
1c7a412
.wrap.environment bugfix -- was missing hidden objs in envrs
eliotmcintire Dec 11, 2023
91270a6
.wrap -- do a deep copy of `data.table`
eliotmcintire Dec 11, 2023
99f1888
.wrap.environment --> don't do a Copy(obj)
eliotmcintire Dec 11, 2023
2d69b41
.wrap.environment --> skip `as.list` if length 0
eliotmcintire Dec 11, 2023
65ee52a
tags -- only intersection of tags
eliotmcintire Dec 11, 2023
40db863
Merge branch 'tmp' into modsForLargeArchives
eliotmcintire Dec 11, 2023
2fc3647
bugfix for CacheDigest when a list has no names
eliotmcintire Dec 13, 2023
8f0d70b
.addSlashNToAllButFinalElement
eliotmcintire Dec 13, 2023
cc8e214
messages with line wrap
eliotmcintire Dec 13, 2023
6d96e27
.robustDigest for `qs` and `cacheSpeed = "fast"` for ALTREP
eliotmcintire Dec 13, 2023
734c88d
rm browser
Dec 14, 2023
cc7a83b
messageCache updates -- trying to line up
eliotmcintire Dec 15, 2023
e564421
CacheDigest -- more detail for lists
eliotmcintire Dec 15, 2023
c1d8a2b
fineSimilar -- tweaks for more info
eliotmcintire Dec 15, 2023
2280757
mesaging inconsistencies
eliotmcintire Dec 19, 2023
9e4cc2f
showCache -- add `fun` , `cacheId` and ...
eliotmcintire Dec 19, 2023
3ce051e
loadFile -- simplify: doesn't need cachePath, fullCacheTablefForObj
eliotmcintire Dec 19, 2023
eaaddfb
prevent changing qs to rds or back if using simList
eliotmcintire Dec 19, 2023
5a6f054
prevent ALTREP adjustment for `factor`
eliotmcintire Dec 19, 2023
15156c4
bump v2.0.10.9011; redoc
eliotmcintire Dec 19, 2023
72417f4
rm browser() etc
eliotmcintire Dec 19, 2023
8022ad0
redoc
eliotmcintire Dec 19, 2023
f587ad7
.wrap & .unwrap for SpatVectorCollection
eliotmcintire Dec 19, 2023
c57a504
running tests -- on linux
eliotmcintire Dec 19, 2023
7255f38
showCache -- updates for new args
eliotmcintire Dec 19, 2023
674db7e
Merge branch 'modsForLargeArchives' of github.com:PredictiveEcology/r…
eliotmcintire Dec 19, 2023
b0dc303
minor for case where dbFile is absent
eliotmcintire Dec 20, 2023
ce9b57d
R CMD check -- updating tests
eliotmcintire Dec 20, 2023
54e4eb6
Merge branch 'modsForLargeArchives' of github.com:PredictiveEcology/r…
eliotmcintire Dec 20, 2023
649bbba
v 2.0.10.9013
eliotmcintire Dec 20, 2023
8c91532
prevent switching between qs and rds in a simList without a stop
eliotmcintire Dec 20, 2023
2bc3d0d
R cmd check -- test updating
eliotmcintire Dec 20, 2023
adfe868
with prev
eliotmcintire Dec 20, 2023
d9f1db2
R CMD checking -- updating more tests
eliotmcintire Dec 20, 2023
403186b
Add gdown capability if reproducible.useGdown = TRUE
eliotmcintire Dec 21, 2023
de4c5aa
Merge branch 'modsForLargeArchives' of https://github.com/PredictiveE…
Dec 21, 2023
934697c
|useCache is FALSE -- incorrect message
eliotmcintire Dec 21, 2023
b9c38e9
add gdown description to reproducibleOptions
Dec 21, 2023
5f39f70
R CMD checking
eliotmcintire Dec 21, 2023
54cb628
Don't wrap message lines with 30 at the top level
eliotmcintire Dec 22, 2023
245cb06
Merge branch 'modsForLargeArchives' of https://github.com/PredictiveE…
eliotmcintire Dec 22, 2023
2c46b93
minor
eliotmcintire Dec 22, 2023
a50d403
cacheId = 'previous' --> allows Cache to be a bit stickier
eliotmcintire Dec 22, 2023
f721bbc
fix messaging on cache memoise vs non memoise
eliotmcintire Dec 31, 2023
1f7bc1b
gdalMask -- had different default from maskTo re: "touches" -- now same
eliotmcintire Jan 4, 2024
d2ecba4
gdalwarpThreads option
eliotmcintire Jan 4, 2024
d8667c7
switchDataTypes -- updates with more types for GDAL; also: rerun tole…
eliotmcintire Jan 4, 2024
1247130
prepInputs -- if `fun = NA` return the file path only
eliotmcintire Jan 4, 2024
7f86616
gdalResample now can accept `...` e.g., `datateype`
eliotmcintire Jan 4, 2024
c57a05c
pass NUM_THREADS to gdal*
eliotmcintire Jan 4, 2024
2f8ce78
addDataType for gdal*
eliotmcintire Jan 4, 2024
d19ccf1
gdalTransform -- for vector to vector (like st_transform)
eliotmcintire Jan 4, 2024
84a36ae
showSimilar -- now returns most recent if otherwise equivalent
eliotmcintire Jan 4, 2024
316d84f
redoc; bump; news
eliotmcintire Jan 4, 2024
e01ff57
`retry` can now run without `quote` ... like `try`
eliotmcintire Jan 4, 2024
3cbc910
`retry` can now run without `quote` ... like `try`
eliotmcintire Jan 4, 2024
75e98a0
Merge branch 'modsForLargeArchives' of https://github.com/PredictiveE…
Jan 4, 2024
de67600
bugfix "sorting showSimilar"
eliotmcintire Jan 4, 2024
1918006
Merge branch 'modsForLargeArchives' of github.com:PredictiveEcology/r…
eliotmcintire Jan 4, 2024
124bba6
do a final CHECKSUMS check before hardLinking
eliotmcintire Jan 4, 2024
40bf2a8
prepInputs/postProcess -- more message tweaking
eliotmcintire Jan 4, 2024
418a625
messaging -- indenting -- now reflect indent level
eliotmcintire Jan 6, 2024
47a8cb0
switchDataType -- updates for going backwards
eliotmcintire Jan 6, 2024
b8c8994
dtps (datatypes) --> add more
eliotmcintire Jan 6, 2024
eff7f9b
gdal* --> add retries with browser() temporarily
eliotmcintire Jan 6, 2024
28eabab
gdal* --> updateDstNoData fn
eliotmcintire Jan 6, 2024
9fe8bad
default FLT8S if datatype not specified
eliotmcintire Jan 6, 2024
4fc335c
minor tweaks
eliotmcintire Jan 6, 2024
d15adf2
message fix
eliotmcintire Jan 6, 2024
b970026
v2.0.10.9018 news, description,
eliotmcintire Jan 6, 2024
949e1e6
missing terra::
eliotmcintire Jan 6, 2024
8a1e7a4
datatype stuff didn't deal with LOG1S
eliotmcintire Jan 6, 2024
7495540
whoops
eliotmcintire Jan 6, 2024
4ebde1d
switchDataType -- only pick first layer in `fromRas`
eliotmcintire Jan 6, 2024
05e4ddf
switchDataType -- only pick first layer in `fromRas`
eliotmcintire Jan 6, 2024
23624ae
Merge branch 'modsForLargeArchives' of github.com:PredictiveEcology/r…
eliotmcintire Jan 8, 2024
459ad1e
allow switching from rds to/from qs for simList also
eliotmcintire Jan 22, 2024
13d3396
be robust to multiple .dbFile. ... e.g., qs and rds both exist is OK
eliotmcintire Jan 22, 2024
99720d7
capture `fun` in prepInputs
eliotmcintire Jan 22, 2024
7b073e0
missed convert to messagePreProcess
eliotmcintire Jan 22, 2024
e6e12a9
if destinationPath missing -- use "." even if user passes NULL
eliotmcintire Jan 22, 2024
6655229
With `prepInputs` `fun` capturing, need to evaluate 2x in some cases
eliotmcintire Jan 22, 2024
f666d68
prepInputs -- if funChar is NULL -- use format(...) to get something
eliotmcintire Jan 22, 2024
0335207
Catch gdal* in the cases it fails; try non-gdal*
eliotmcintire Jan 24, 2024
d13badb
Cache -- omitArgs was not recursive -- now it is
eliotmcintire Jan 26, 2024
3aad4c8
prepInputsAssertions -- allow logical for archive (i.e., NA)
eliotmcintire Jan 26, 2024
6be699e
isGoogleID & isGoogleDriveURL
eliotmcintire Jan 26, 2024
246a7bf
bugfix -- preProcess -- if one file existed, but others not from an a…
eliotmcintire Jan 26, 2024
0f46958
robustDigest for drive_id class
eliotmcintire Jan 26, 2024
10d1bf9
cleanup, redoc, fixing var name issues from R CMD check
achubaty Feb 26, 2024
863700b
update GHA workflows for node20
achubaty Jan 31, 2024
718b573
fix `prepInputs(..., useCache)` doc + redoc
Feb 29, 2024
1aed417
fixed doc for `cropTo(..., needBuffer)`
Feb 29, 2024
601a9bc
tweaks to `postProcessTerra` messaging
Feb 29, 2024
e50ed75
Merge branch 'development' into modsForLargeArchives
Mar 29, 2024
bc9baca
bump version and news b/c of CRAN fails & development updates
eliotmcintire Mar 29, 2024
ee6b56a
Merge branch 'development' into modsForLargeArchives
Mar 29, 2024
3d8f0ea
fix minor typo in NEWS
achubaty Apr 2, 2024
520080b
add documentation for 'quickCheck' arg in '.digest()'
achubaty Apr 2, 2024
812dbfa
remove reference to 'fastdigest' from vignette
achubaty Apr 2, 2024
1762cfb
spelling
achubaty Apr 2, 2024
7df4c64
redoc
achubaty Apr 4, 2024
85b8538
update citation workflow rversion
achubaty Apr 9, 2024
5ef1db3
fix getRelative to allow multiple e.g. module paths
achubaty Apr 15, 2024
a8d4e01
bump devel version 9001
achubaty Apr 15, 2024
58b59f0
Version bump 2.0.12.9001
eliotmcintire Apr 25, 2024
9bdc904
Merge branch 'development' into modsForLargeArchives
achubaty May 6, 2024
1535b96
[skip-ci] minor whitespace cleanup
achubaty May 8, 2024
4d1a99c
let relativeToWhat handle multiple paths
achubaty May 8, 2024
d52efd2
[skip-ci] with prev
achubaty May 8, 2024
9db6c47
[skip-ci] minor, with prev
achubaty May 8, 2024
4ce910d
[skip-ci] add informative error message to remapFileNames()
achubaty May 9, 2024
b33e6cd
[skip-ci] bump devel version 2.0.12.9004
achubaty May 9, 2024
d631f52
relax path length requirement in relativeToWhat
achubaty May 9, 2024
7d50d04
fix relativeToWhat test
achubaty May 9, 2024
fd9867e
tweak to prev
achubaty May 9, 2024
3159cb8
fix cache test failures
achubaty May 9, 2024
4b627ff
[skip-ci] misc cleanup
achubaty May 9, 2024
9b8b182
[WIP] fixing cache helper tests
achubaty May 9, 2024
800d6b8
[WIP] fixing prepInputs test failures + cleanup
achubaty May 9, 2024
041b470
[skip-ci] add cache test comment + minor cleanup
achubaty May 9, 2024
19a20b7
move all internal .messages to an internal environment
achubaty May 9, 2024
f1ba264
move SysInfo to .pkgEnv
achubaty May 9, 2024
e7098fb
reorganize exportedMethods.R
achubaty May 9, 2024
09a6f82
export message*() for use with other packages
achubaty May 9, 2024
97e9e5c
[skip-ci] message docs formatting
achubaty May 9, 2024
a1f74e5
[skip-ci] add `.reproEnv` to package env docs
achubaty May 9, 2024
5f00871
minor docs tweak
achubaty May 10, 2024
8cd5302
[v2.0.12.9010] fix clearCache + cleanup cache after each test (#388)
achubaty May 10, 2024
36b4d1c
put cacheSaveFormat option back in list to keep/check in msic test (#…
achubaty May 10, 2024
4e250c9
[skip-ci] minor whitespace/formatting
achubaty May 10, 2024
52f4d36
[v2.0.12.9011] adjust `showSimilar` tests to expect most recent cache…
achubaty May 10, 2024
0a8e888
cleanup + remove faulty windows test
achubaty May 14, 2024
c235fc3
skip a test on R < 4.3
achubaty May 14, 2024
5979707
tweak GHA check workflow
achubaty May 14, 2024
ec96884
Update R-CMD-check.yaml
achubaty May 15, 2024
6b05b37
Update R-CMD-check.yaml
achubaty May 15, 2024
49650eb
[skip-ci] minor
achubaty May 15, 2024
bf5db25
Revert "Update R-CMD-check.yaml"
achubaty May 15, 2024
510d7b8
GHA use '-' instead of '/' for oldrel specification
achubaty May 15, 2024
a1221d5
GHA: try install qs from GitHub to force source install
achubaty May 15, 2024
b6b6490
[skip-ci] revdeps checks
achubaty May 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ jobs:
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'devel'}
- {os: windows-latest, r: 'devel', http-user-agent: 'release'}
- {os: windows-latest, r: 'release'}
- {os: windows-latest, r: 'oldrel/1'}
- {os: windows-latest, r: 'oldrel/2'}
- {os: windows-latest, r: 'oldrel/3'}
- {os: ubuntu-20.04, r: 'devel'}
- {os: windows-latest, r: 'oldrel-1'}
- {os: windows-latest, r: 'oldrel-2'}
- {os: windows-latest, r: 'oldrel-3'}
- {os: ubuntu-20.04, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-20.04, r: 'release'}
- {os: ubuntu-20.04, r: 'oldrel/1'}
- {os: ubuntu-20.04, r: 'oldrel/2'}
- {os: ubuntu-20.04, r: 'oldrel/3'}
- {os: ubuntu-20.04, r: 'oldrel-1'}
- {os: ubuntu-20.04, r: 'oldrel-2'}
- {os: ubuntu-20.04, r: 'oldrel-3'}

env:
_SP_EVOLUTION_STATUS_: 2
Expand All @@ -49,6 +49,7 @@ jobs:

- uses: r-lib/actions/setup-r@v2
with:
http-user-agent: ${{ matrix.config.http-user-agent }}
Ncpus: 2
r-version: ${{ matrix.config.r }}
use-public-rspm: false
Expand All @@ -58,6 +59,8 @@ jobs:
extra-packages: |
any::rcmdcheck
any::Rcpp
traversc/qs
pak-version: devel

- uses: r-lib/actions/check-r-package@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-citation-cff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- uses: r-lib/actions/setup-r@v2
with:
Ncpus: 2
r-version: ${{ matrix.config.r }}
r-version: 'release'
use-public-rspm: false
- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand Down
9 changes: 6 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ SystemRequirements: 'unrar' (Linux/macOS) or '7-Zip' (Windows) to work with '.ra
URL:
https://reproducible.predictiveecology.org,
https://github.com/PredictiveEcology/reproducible
Date: 2024-04-15
Version: 2.0.12
Date: 2024-05-14
Version: 2.0.12.9011
Authors@R:
c(person(given = "Eliot J B",
family = "McIntire",
Expand Down Expand Up @@ -62,6 +62,7 @@ Imports:
stats,
utils
Suggests:
archive,
covr,
crayon,
DBI,
Expand All @@ -78,6 +79,7 @@ Suggests:
rlang,
rmarkdown,
RSQLite,
R.utils,
sf,
sp (>= 1.4-2),
terra (>= 1.7-20),
Expand All @@ -103,10 +105,11 @@ Collate:
'convertPaths.R'
'copy.R'
'download.R'
'messages.R'
'exportedMethods.R'
'gis.R'
'helpers.R'
'messages.R'
'listNamed.R'
'objectSize.R'
'options.R'
'packages.R'
Expand Down
10 changes: 10 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ S3method(writeOutputs,default)
export(.addChangedAttr)
export(.addTagsToOutput)
export(.cacheMessage)
export(.cacheMessageObjectToRetrieve)
export(.checkCacheRepo)
export(.file.move)
export(.formalsNotInCurrentDots)
Expand Down Expand Up @@ -75,17 +76,26 @@ export(downloadFile)
export(fastMask)
export(fixErrors)
export(fixErrorsIn)
export(gdalMask)
export(gdalProject)
export(gdalResample)
export(getRelative)
export(internetExists)
export(isUpdated)
export(linkOrCopy)
export(listNamed)
export(loadFromCache)
export(makeMemoisable)
export(makeRelative)
export(maskInputs)
export(maskTo)
export(maxFn)
export(messageCache)
export(messageColoured)
export(messageDF)
export(messagePreProcess)
export(messagePrepInputs)
export(messageQuestion)
export(minFn)
export(movedCache)
export(nlayers2)
Expand Down
35 changes: 32 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,45 @@
# reproducible (development version)

## New
* new family of functions that are called inside `postProcessTo` that use `sf::gdal_utils` directly. These are still experimental and will only be activated with `options("reproducible.gdalwarp" = TRUE)`
* default for `gdalMask` has changed default for "touches". Now has equivalent for `terra::mask(..., touches = TRUE)`, using `"-wo CUTLINE_ALL_TOUCHED=TRUE"`
* `gdalProject` now uses 2 threads, setting `"-wo NUM_THREADS=2"`; can be changed by user with `options("reproducible.gdalwarpThreads" = X)`; see `?reproducibleOptions`
* `gdal*` functions now address `datatype` issues
* `gdal*` defaults to `FLT8S` if `datatype` not passed
* `makeRelative`, `makeAbsolute` and similar have been created to ease many issues encountered in `preProcess`

## Changes
* `showSimilar` (e.g., `options(reproducible.showSimilar = 1)`) now preferentially shows the most recent item in cache if there are several with equivalent matching.
* overhaul of messaging in `Cache` and `prepInputs` families; functions are highlighted with a different colour; indent level reflects nesting of both `Cache` and `prepInputs`, so it is easier to identify which message goes with which function call.
* `preProcess` is a lot faster now for large numbers of files; uses `CHECKSUMS` more effectively and fewer times
* `retry` now captures its `expr` so it doesn't need a `quote`; is like `try` now.
* `showSimilar` mechanisms now returns the most recent, if there are >1 similar that are equivalently similar
* if a user is having troubles with `googledrive` for e.g., large files on spotting connections, instructions for using `gdown` are provided
* `showCache`, `clearCache` now have extra arguments `fun`, `cacheId`, and `...` now can take any arbitrary `tag = value` pair. The `cacheId` argument will be very fast if a user is not using `useDBI()` is `FALSE`.
* `.wrap` and `.unwrap` can now deal with `SpatVectorCollection` (a `terra` class that does not have a `wrap`/`unwrap` method in `terra`)
* ALTREP digesting when using `spooky` or `fastdigest` were not stable for `integers` and `factors`. There is now a work around in `.robustDigest` that stabilizes these by expanding them from their ALTREP representation first. Since they will be saved and recovered anyway, this will have little effect.
* `.wrap` and `.unwrap` are becoming more mature and can handle many more classes effectively. Methods can still be written, if needed.

## Testing
* lots of testing with `cacheSaveFormat = "qs"`, which previously was not reliable especially for environments. With all recent changes to `.wrap` and `.unwrap`, these appear stable now and should be able to be used for `environments`.

## Bugfixes
* `switchDataType` can now correctly switch between `gdal` formats and `terra`
* many messaging fixes that were imprecise or missing

# reproducible 2.0.12

* re-submission after removal from CRAN

# reproducible 2.0.11

## Remove dependency
* fastdigest was removed from CRAN and so is removed from here.
* `fastdigest` was removed from CRAN and so is removed from here.

# reproducible 2.0.10

## Bug fixes
* critical bugfixes for file-backed SpatRaster objects
* critical bugfixes for file-backed `SpatRaster` objects

# reproducible 2.0.9

Expand All @@ -29,7 +58,7 @@
* `Cache` can now skip calculating `objSize`, which can take a non-trivial amount of time for large, complicated objects; see `reproducibleOptions()`

## Bug fixes
* Filenames for some classes returned ""; now returns NULL so character vectors are only pointers to files
* `Filenames` for some classes returned ""; now returns NULL so character vectors are only pointers to files
* Cache on a terra object that writes file to disk, when `quick` argument is specified was failing, always creating the same object; fixed with #PR368
* `useDBI` was incorrectly used if a user had set the option prior to package loading. Now works as expected.
* several other minor
Expand Down
Loading
Loading