Comments (3)
The suggestion in the link above is not compatible with testthat
and devtools
which requires tests to be in a specific location.
One way to achieve this is here https://stackoverflow.com/a/31382772/6424231
It requires building the package from source with specific options:
devtools::build(binary=TRUE, args=c("--preclean", "--install-tests"))
The install the package binary file which is created e.g.
install.packages("cdms.products_0.0.0.9000.zip", repos = NULL, type = "win.binary")
Then you can run the tests using testthat
:
testthat::test_package("cdms.products")
@lloyddewit Attached is a binary file for the package. Could you check you can install it and run the tests with the code above?
I'm looking into how you could do the build step directly from GitHub without needing the package source. In the meantime, try the file below.
from cdms.products.
@dannyparsons I downloaded the zip file.
I tried to install the zip file using the R command line in my VS Code terminal window.
I got an error:
This makes sense because my development environment is WSL Ubuntu, and the binary is for Windows.
So I opened RStudio in Windows and executed the R commands in my Windows R environment.
install.packages("C:/Users/steph/OneDrive/Desktop/FirefoxDownloads/cdms.products_0.0.0.9000.zip", repos = NULL, type = "win.binary")
testthat::test_package("cdms.products")
All tests passed.
So if we want to run testthat::test_package("cdms.products")
as part of the Python layer testing, then we'll need to create a Linux binary, or build from sources.
from cdms.products.
Thanks for checking this. I'll check how to do something similar that will work on Linux.
from cdms.products.
Related Issues (20)
- Creates extremes function
- Refer to `naflex` package on CRAN HOT 1
- Add an example dataset to the package
- Parameter names - consistency HOT 5
- Export CDT Dekadal data HOT 6
- Package name HOT 3
- Only use names and function signatures that are also valid in Python HOT 8
- Discussion on using "tidy evaluation" or not for column names HOT 2
- The signature of `export_geoclim_month` is inconsistent with Python
- Bugs in the inventory_plot function HOT 1
- Bug when using elements in the climatic_summary function HOT 2
- Add test for climatic_summary when there's no summaries provided
- Errors in prepare_geoclim function HOT 2
- Add test for climatic_summary that contains a `summaries_params` parameter HOT 3
- "element" not recognized in Input (file_path = paste0("CDT-", element, ".csv")
- Incorrect column names from export_geoclim_month.R
- R functions to write tests on HOT 4
- Parameters ignored in `export_geoclim_dekad()` and `export_geoclim_pentad()` HOT 1
- Invalid tests in `test-histogram_plot.R`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cdms.products.